Class DependencyManager<S,T>
java.lang.Object
org.apache.felix.scr.impl.manager.DependencyManager<S,T>
- All Implemented Interfaces:
ReferenceManager<S,T>
The
DependencyManager manages the references to services
declared by a single <reference>invalid input: '<'/code element in component
descriptor.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleancardinalitySatisfied(int serviceCount) getName()Returns the name of the service reference.List<org.osgi.framework.ServiceReference<?>> Returns an array ofServiceReferenceinstances of all services this instance is bound to ornullif no services are actually bound.Returns the target filter of this dependency as a string ornullif this dependency has no target filter set.booleanReturnstrueif the component providing bundle has permission to get the service described by this reference.voidinvokeBindMethodLate(org.osgi.framework.ServiceReference<T> ref, int trackingCount) booleanReturnstrueif 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.toString()
-
Method Details
-
cardinalitySatisfied
public boolean cardinalitySatisfied(int serviceCount) -
getServiceReferences
Description copied from interface:ReferenceManagerReturns an array ofServiceReferenceinstances of all services this instance is bound to ornullif no services are actually bound.- Specified by:
getServiceReferencesin interfaceReferenceManager<S,T>
-
getName
Description copied from interface:ReferenceManagerReturns the name of the service reference.- Specified by:
getNamein interfaceReferenceManager<S,T>
-
getReferenceMetadata
-
isSatisfied
public boolean isSatisfied()Returnstrueif 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:
isSatisfiedin interfaceReferenceManager<S,T>
-
hasGetPermission
public boolean hasGetPermission()Returnstrueif the component providing bundle has permission to get the service described by this reference. -
invokeBindMethodLate
-
getTarget
Description copied from interface:ReferenceManagerReturns the target filter of this dependency as a string ornullif this dependency has no target filter set.- Specified by:
getTargetin interfaceReferenceManager<S,T> - Returns:
- The target filter of this dependency or
nullif none is set.
-
toString
-