Class DependencyManager.NoPermissionsCustomizer
java.lang.Object
org.apache.felix.scr.impl.manager.DependencyManager.NoPermissionsCustomizer
- All Implemented Interfaces:
DependencyManager.Customizer<S,
,T> ServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent>
- Enclosing class:
- DependencyManager<S,
T>
private class DependencyManager.NoPermissionsCustomizer
extends Object
implements DependencyManager.Customizer<S,T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addedService
(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S, T> service, int trackingCount, int serviceCount, ExtendedServiceEvent event) addingService
(org.osgi.framework.ServiceReference<T> tServiceReference) A service is being added to theServiceTracker
.void
close()
Collection<RefPair<S,
T>> getRefs
(AtomicInteger trackingCount) boolean
void
modifiedService
(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S, T> service, 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> tServiceReference, RefPair<S, T> service, int trackingCount, ExtendedServiceEvent event) A service tracked by theServiceTracker
has been removed.void
void
setTracker
(ServiceTracker<T, RefPair<S, T>, ExtendedServiceEvent> tRefPairServiceTracker) void
-
Constructor Details
-
NoPermissionsCustomizer
private NoPermissionsCustomizer()
-
-
Method Details
-
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.- Specified by:
prebind
in interfaceDependencyManager.Customizer<S,
T> - Parameters:
key
- TODO- Returns:
- true if there are enough services for activation.
-
close
public void close()- Specified by:
close
in interfaceDependencyManager.Customizer<S,
T>
-
getRefs
- Specified by:
getRefs
in interfaceDependencyManager.Customizer<S,
T>
-
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfied
in interfaceDependencyManager.Customizer<S,
T>
-
setTracker
- Specified by:
setTracker
in interfaceDependencyManager.Customizer<S,
T>
-
setTrackerOpened
public void setTrackerOpened()- Specified by:
setTrackerOpened
in interfaceDependencyManager.Customizer<S,
T>
-
setPreviousRefMap
public void setPreviousRefMap(Map<org.osgi.framework.ServiceReference<T>, RefPair<S, T>> previousRefMap) - Specified by:
setPreviousRefMap
in interfaceDependencyManager.Customizer<S,
T>
-
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.- Specified by:
addingService
in interfaceServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent> - Parameters:
tServiceReference
- 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> tServiceReference, RefPair<S, T> service, int trackingCount, int serviceCount, ExtendedServiceEvent event) - Specified by:
addedService
in interfaceServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent>
-
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S, T> service, 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.- Specified by:
modifiedService
in interfaceServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent> - Parameters:
tServiceReference
- The reference to the service that has been modified.service
- The service object for the specified referenced service.event
- TODO
-
removedService
public void removedService(org.osgi.framework.ServiceReference<T> tServiceReference, RefPair<S, T> service, 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
.- Specified by:
removedService
in interfaceServiceTrackerCustomizer<T,
RefPair<S, T>, ExtendedServiceEvent> - Parameters:
tServiceReference
- The reference to the service that has been removed.service
- The service object for the specified referenced service.event
- TODO
-