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 TypeMethodDescriptionboolean
cardinalitySatisfied
(int serviceCount) getName()
Returns the name of the service reference.List
<org.osgi.framework.ServiceReference<?>> Returns an array ofServiceReference
instances of all services this instance is bound to ornull
if no services are actually bound.Returns the target filter of this dependency as a string ornull
if this dependency has no target filter set.boolean
Returnstrue
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
Returnstrue
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.toString()
-
Method Details
-
cardinalitySatisfied
public boolean cardinalitySatisfied(int serviceCount) -
getServiceReferences
Description copied from interface:ReferenceManager
Returns an array ofServiceReference
instances of all services this instance is bound to ornull
if no services are actually bound.- Specified by:
getServiceReferences
in interfaceReferenceManager<S,
T>
-
getName
Description copied from interface:ReferenceManager
Returns the name of the service reference.- Specified by:
getName
in interfaceReferenceManager<S,
T>
-
getReferenceMetadata
-
isSatisfied
public boolean isSatisfied()Returnstrue
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 interfaceReferenceManager<S,
T>
-
hasGetPermission
public boolean hasGetPermission()Returnstrue
if the component providing bundle has permission to get the service described by this reference. -
invokeBindMethodLate
-
getTarget
Description copied from interface:ReferenceManager
Returns the target filter of this dependency as a string ornull
if this dependency has no target filter set.- Specified by:
getTarget
in interfaceReferenceManager<S,
T> - Returns:
- The target filter of this dependency or
null
if none is set.
-
toString
-