Class DependencyManager<S,T>

java.lang.Object
org.apache.felix.scr.impl.manager.DependencyManager<S,T>
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>invalid input: '<'/code element in component descriptor.
  • Method Details

    • cardinalitySatisfied

      public boolean cardinalitySatisfied(int serviceCount)
    • getServiceReferences

      public List<org.osgi.framework.ServiceReference<?>> getServiceReferences()
      Description copied from interface: ReferenceManager
      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>
    • getName

      public String getName()
      Description copied from interface: ReferenceManager
      Returns the name of the service reference.
      Specified by:
      getName in interface ReferenceManager<S,T>
    • getReferenceMetadata

      public ReferenceMetadata getReferenceMetadata()
    • 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>
    • hasGetPermission

      public boolean hasGetPermission()
      Returns true if the component providing bundle has permission to get the service described by this reference.
    • invokeBindMethodLate

      public void invokeBindMethodLate(org.osgi.framework.ServiceReference<T> ref, int trackingCount)
    • getTarget

      public String getTarget()
      Description copied from interface: ReferenceManager
      Returns the target filter of this dependency as a string or null if this dependency has no target filter set.
      Specified by:
      getTarget in interface ReferenceManager<S,T>
      Returns:
      The target filter of this dependency or null if none is set.
    • toString

      public String toString()
      Overrides:
      toString in class Object