private class DependencyManager.NoPermissionsCustomizer extends java.lang.Object implements DependencyManager.Customizer<S,T>
| Modifier | Constructor and Description |
|---|---|
private |
NoPermissionsCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addedService(org.osgi.framework.ServiceReference<T> tServiceReference,
RefPair<S,T> service,
int trackingCount,
int serviceCount,
ExtendedServiceEvent event) |
RefPair<S,T> |
addingService(org.osgi.framework.ServiceReference<T> tServiceReference)
A service is being added to the
ServiceTracker. |
void |
close() |
java.util.Collection<RefPair<S,T>> |
getRefs(java.util.concurrent.atomic.AtomicInteger trackingCount) |
boolean |
isSatisfied() |
void |
modifiedService(org.osgi.framework.ServiceReference<T> tServiceReference,
RefPair<S,T> service,
int trackingCount,
ExtendedServiceEvent event)
A service tracked by the
ServiceTracker 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> tServiceReference,
RefPair<S,T> service,
int trackingCount,
ExtendedServiceEvent event)
A service tracked by the
ServiceTracker has been removed. |
void |
setPreviousRefMap(java.util.Map<org.osgi.framework.ServiceReference<T>,RefPair<S,T>> previousRefMap) |
void |
setTracker(ServiceTracker<T,RefPair<S,T>,ExtendedServiceEvent> tRefPairServiceTracker) |
void |
setTrackerOpened() |
public boolean prebind(ComponentContextImpl<S> key)
DependencyManager.Customizerprebind in interface DependencyManager.Customizer<S,T>key - TODOpublic void close()
close in interface DependencyManager.Customizer<S,T>public java.util.Collection<RefPair<S,T>> getRefs(java.util.concurrent.atomic.AtomicInteger trackingCount)
getRefs in interface DependencyManager.Customizer<S,T>public boolean isSatisfied()
isSatisfied in interface DependencyManager.Customizer<S,T>public void setTracker(ServiceTracker<T,RefPair<S,T>,ExtendedServiceEvent> tRefPairServiceTracker)
setTracker in interface DependencyManager.Customizer<S,T>public void setTrackerOpened()
setTrackerOpened in interface DependencyManager.Customizer<S,T>public void setPreviousRefMap(java.util.Map<org.osgi.framework.ServiceReference<T>,RefPair<S,T>> previousRefMap)
setPreviousRefMap in interface DependencyManager.Customizer<S,T>public RefPair<S,T> addingService(org.osgi.framework.ServiceReference<T> tServiceReference)
ServiceTrackerCustomizerServiceTracker.
This method is called before a service which matched the search
parameters of the ServiceTracker is added to the
ServiceTracker. This method should return the service object to
be tracked for the specified ServiceReference. The returned
service object is stored in the ServiceTracker and is available
from the getService and getServices methods.
addingService in interface ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>tServiceReference - The reference to the service being added to the
ServiceTracker.null if the specified referenced service
should not be tracked.public void addedService(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S,T> service, int trackingCount, int serviceCount, ExtendedServiceEvent event)
addedService in interface ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>public void modifiedService(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S,T> service, int trackingCount, ExtendedServiceEvent event)
ServiceTrackerCustomizerServiceTracker has been modified.
This method is called when a service being tracked by the
ServiceTracker has had it properties modified.
modifiedService in interface ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>tServiceReference - The reference to the service that has been modified.service - The service object for the specified referenced service.event - TODOpublic void removedService(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S,T> service, int trackingCount, ExtendedServiceEvent event)
ServiceTrackerCustomizerServiceTracker has been removed.
This method is called after a service is no longer being tracked by the
ServiceTracker.
removedService in interface ServiceTrackerCustomizer<T,RefPair<S,T>,ExtendedServiceEvent>tServiceReference - The reference to the service that has been removed.service - The service object for the specified referenced service.event - TODO