|
Knopflerfish OSGi 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Reference interface represents a single reference (or
dependency) to a service used by a Component.
| Method Summary | |
java.lang.String |
getBindMethodName()
Returns the name of the method called if a service is being bound to the Component or null if no such method is configued. |
java.lang.String |
getName()
Returns the name of this Reference. |
java.lang.String |
getServiceName()
Returns the name of the service used by this Reference. |
ServiceReference[] |
getServiceReferences()
Returns an array of references to the services bound to this Reference or null if no services are currently bound. |
java.lang.String |
getTarget()
Returns the value of the target property of this reference. |
java.lang.String |
getUnbindMethodName()
Returns the name of the method called if a service is being unbound from the Component or null if no such method is configued. |
java.lang.String |
getUpdatedMethodName()
Returns the name of the method called if a bound service updates its service registration properties or null if no such method
is configued. |
boolean |
isMultiple()
Returns whether this reference is multiple. |
boolean |
isOptional()
Returns whether this reference is optional. |
boolean |
isSatisfied()
Returns whether this reference is satisified. |
boolean |
isStatic()
Returns true if the reference is defined with static policy. |
| Method Detail |
public java.lang.String getName()
name attribute of the referenec element.
public java.lang.String getServiceName()
interface attribute of the
reference element.
public ServiceReference[] getServiceReferences()
null if no services are currently bound.
public boolean isSatisfied()
optional
component is always satsified. Otherwise true is only
returned if at least one service is bound.
public boolean isOptional()
cardinality attribute of the
reference element. In other words, this method returns
true if the cardinality is 0..1 or 0..n.
public boolean isMultiple()
cardinality attribute of the
reference element. In other words, this method returns
true if the cardinality is 0..n or 1..n.
public boolean isStatic()
true if the reference is defined with static policy.
This method provides access to the policy element of the
reference element. true is returned if the
policy is defined as static.
public java.lang.String getTarget()
target attribute of the reference element. If
configuration overwrites the target property, this method returns the
value of the Component property whose name is derived from the
reference name plus the suffix .target. If
no target property exists this method returns null.
public java.lang.String getBindMethodName()
null if no such method is configued. This
method provides access to the bind attribute of the
reference element.
public java.lang.String getUnbindMethodName()
null if no such method is configued. This
method provides access to the unbind attribute of the
reference element.
public java.lang.String getUpdatedMethodName()
null if no such method
is configued. This method provides access to the updated
attribute of the reference element.
For a component declared in a Declarative Services 1.0 and 1.1
descriptor, this method always returns null.
|
Knopflerfish OSGi 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||