Class DependencyManager.SingleStaticCustomizer
java.lang.Object
DependencyManager<S,T>.AbstractCustomizer
org.apache.felix.scr.impl.manager.DependencyManager.SingleStaticCustomizer
- All Implemented Interfaces:
DependencyManager.Customizer<S,
,T> ServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent>
- Enclosing class:
- DependencyManager<S,
T>
private class DependencyManager.SingleStaticCustomizer
extends DependencyManager<S,T>.AbstractCustomizer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addedService
(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, int serviceCount, ExtendedServiceEvent event) addingService
(org.osgi.framework.ServiceReference<T> serviceReference) A service is being added to theServiceTracker
.void
close()
Collection<RefPair<S,
T>> getRefs
(AtomicInteger trackingCount) void
modifiedService
(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, ExtendedServiceEvent event) A service tracked by theServiceTracker
has been modified.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.void
removedService
(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, ExtendedServiceEvent event) A service tracked by theServiceTracker
has been removed.Methods inherited from class org.apache.felix.scr.impl.manager.DependencyManager.AbstractCustomizer
deactivateTracker, getPreviousRefMap, getTracker, isActive, isSatisfied, isTrackerOpened, setPreviousRefMap, setTracker, setTrackerOpened, tracked, ungetService
-
Field Details
-
refPair
-
trackingCount
private int trackingCount
-
-
Constructor Details
-
SingleStaticCustomizer
private SingleStaticCustomizer()
-
-
Method Details
-
addingService
Description copied from interface:ServiceTrackerCustomizer
A service is being added to theServiceTracker
.This method is called before a service which matched the search parameters of the
ServiceTracker
is added to theServiceTracker
. This method should return the service object to be tracked for the specifiedServiceReference
. The returned service object is stored in theServiceTracker
and is available from thegetService
andgetServices
methods.- Parameters:
serviceReference
- The reference to the service being added to theServiceTracker
.- Returns:
- The service object to be tracked for the specified referenced
service or
null
if the specified referenced service should not be tracked.
-
addedService
public void addedService(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, int serviceCount, ExtendedServiceEvent event) -
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, ExtendedServiceEvent event) Description copied from interface:ServiceTrackerCustomizer
A service tracked by theServiceTracker
has been modified.This method is called when a service being tracked by the
ServiceTracker
has had it properties modified.- Parameters:
serviceReference
- The reference to the service that has been modified.refPair
- The service object for the specified referenced service.event
- TODO
-
removedService
public void removedService(org.osgi.framework.ServiceReference<T> serviceReference, RefPair<S, T> refPair, int trackingCount, ExtendedServiceEvent event) Description copied from interface:ServiceTrackerCustomizer
A service tracked by theServiceTracker
has been removed.This method is called after a service is no longer being tracked by the
ServiceTracker
.- Parameters:
serviceReference
- The reference to the service that has been removed.refPair
- The service object for the specified referenced service.event
- TODO
-
prebind
Description copied from interface:DependencyManager.Customizer
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
public void close() -
getRefs
-