-
- All Implemented Interfaces:
ReferenceManager<S,T>
public class DependencyManager<S,T>
extends Object
implements ReferenceManager<S,T>
The DependencyManager manages the references to services
declared by a single <reference>
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
String |
getName() |
Returns the name of the service reference.
|
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() |
|
-
-
Method Detail
-
getServiceReferences
public 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.
- Specified by:
getServiceReferences in interface ReferenceManager<S,T>
-
isSatisfied
public 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.
- Specified by:
isSatisfied in interface ReferenceManager<S,T>