Interface DependencyManager.Customizer<S,T>
-
- All Superinterfaces:
ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>
- All Known Implementing Classes:
DependencyManager.AbstractCustomizer,DependencyManager.FactoryCustomizer,DependencyManager.MultipleDynamicCustomizer,DependencyManager.MultipleStaticGreedyCustomizer,DependencyManager.MultipleStaticReluctantCustomizer,DependencyManager.NoPermissionsCustomizer,DependencyManager.SingleDynamicCustomizer,DependencyManager.SingleStaticCustomizer
- Enclosing class:
- DependencyManager<S,T>
private static interface DependencyManager.Customizer<S,T> extends ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()java.util.Collection<RefPair<S,T>>getRefs(java.util.concurrent.atomic.AtomicInteger trackingCount)booleanisSatisfied()booleanprebind(ComponentContextImpl<S> key)attempt to obtain the services from the tracked service references that will be used in inital bind calls before activation.voidsetPreviousRefMap(java.util.Map<org.osgi.framework.ServiceReference<T>,RefPair<S,T>> previousRefMap)voidsetTracker(ServiceTracker<T,RefPair<S,T>,ExtendedServiceEvent> tracker)voidsetTrackerOpened()-
Methods inherited from interface org.apache.felix.scr.impl.manager.ServiceTrackerCustomizer
addedService, addingService, modifiedService, removedService
-
-
-
-
Method Detail
-
prebind
boolean prebind(ComponentContextImpl<S> key)
attempt to obtain the services from the tracked service references that will be used in inital bind calls before activation.- Parameters:
key- TODO- Returns:
- true if there are enough services for activation.
-
close
void close()
-
getRefs
java.util.Collection<RefPair<S,T>> getRefs(java.util.concurrent.atomic.AtomicInteger trackingCount)
-
isSatisfied
boolean isSatisfied()
-
setTracker
void setTracker(ServiceTracker<T,RefPair<S,T>,ExtendedServiceEvent> tracker)
-
setTrackerOpened
void setTrackerOpened()
-
-