public class DependencyManager<S,T> extends Object implements ReferenceManager<S,T>
DependencyManager manages the references to services
declared by a single <reference>
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyManager.OpenStatus<S,T> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cardinalitySatisfied(int serviceCount) |
String |
getName()
Returns the name of the service reference.
|
ReferenceMetadata |
getReferenceMetadata() |
List<org.osgi.framework.ServiceReference<?>> |
getServiceReferences()
Returns an array of
ServiceReference instances of all
services this instance is bound to or null if no services
are actually bound. |
String |
getTarget()
Returns the target filter of this dependency as a string or
null if this dependency has no target filter set. |
boolean |
hasGetPermission()
Returns
true if the component providing bundle has permission
to get the service described by this reference. |
void |
invokeBindMethodLate(org.osgi.framework.ServiceReference<T> ref,
int trackingCount) |
boolean |
isSatisfied()
Returns
true if this dependency manager is satisfied, that
is if either the dependency is optional or the number of services
registered in the framework and available to this dependency manager is
not zero. |
String |
toString() |
public boolean cardinalitySatisfied(int serviceCount)
public List<org.osgi.framework.ServiceReference<?>> getServiceReferences()
ReferenceManagerServiceReference instances of all
services this instance is bound to or null if no services
are actually bound.getServiceReferences in interface ReferenceManager<S,T>public String getName()
ReferenceManagergetName in interface ReferenceManager<S,T>public ReferenceMetadata getReferenceMetadata()
public boolean isSatisfied()
true if this dependency manager is satisfied, that
is if either the dependency is optional or the number of services
registered in the framework and available to this dependency manager is
not zero.isSatisfied in interface ReferenceManager<S,T>public boolean hasGetPermission()
true if the component providing bundle has permission
to get the service described by this reference.public void invokeBindMethodLate(org.osgi.framework.ServiceReference<T> ref, int trackingCount)
public String getTarget()
ReferenceManagernull if this dependency has no target filter set.getTarget in interface ReferenceManager<S,T>null if
none is set.Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.