at.ac.tuwien.infosys.sm4all.copal.api.osgi
Interface DependencyTrackerCustomizer

All Known Implementing Classes:
AnnotatedProcessor, BaseConfiguration, BaseProcessor, BasePublisher, ContextEventTypeRegistryTracker, ContextProcessorRegistryTracker, ContextPublisherRegistryTracker, ContextQueryFactoryTracker, ContextSecurityManagerImpl, ContextStateImpl, DeadLetterChannelImpl, DeadLetterListener, EsperPublishing, EventTypesConfiguration, GenericActivator, NotifiersActivator, PolledPublisher, QueriesConfiguration, RESTfulPublisher, SimplePublisher, Tracker

public interface DependencyTrackerCustomizer

Customized interface of ServiceTrackerCustomizer with added argument for dependency name. This interface helps when same class wants to be used as ServiceTrackerCustomizer for multiple ServiceTrackers, so it can separate which ServiceTracker called the methods. This interface is used in combination with DependencyTracker to achieve this goal.

Author:
sanjin

Method Summary
 java.lang.Object addingService(java.lang.String dependencyName, org.osgi.framework.ServiceReference reference)
          A dependency is being added to the DependencyTracker.
 void modifiedService(java.lang.String dependencyName, org.osgi.framework.ServiceReference reference, java.lang.Object service)
          A service tracked by the DependencyTracker has been modified.
 void removedService(java.lang.String dependencyName, org.osgi.framework.ServiceReference reference, java.lang.Object service)
          A service tracked by the DependencyTracker has been removed.
 

Method Detail

addingService

java.lang.Object addingService(java.lang.String dependencyName,
                               org.osgi.framework.ServiceReference reference)
A dependency is being added to the DependencyTracker.

Parameters:
dependencyName - the name of the added dependency.
reference - a dependency is being added to the DependencyTracker.
Returns:
the dependency object to be tracked for the specified referenced service or null if the specified referenced service should not be tracked.

modifiedService

void modifiedService(java.lang.String dependencyName,
                     org.osgi.framework.ServiceReference reference,
                     java.lang.Object service)
A service tracked by the DependencyTracker has been modified.

Parameters:
dependencyName - the name of the modified dependency.
reference - the reference to the service that has been modified.
service - the service object for the specified referenced service.

removedService

void removedService(java.lang.String dependencyName,
                    org.osgi.framework.ServiceReference reference,
                    java.lang.Object service)
A service tracked by the DependencyTracker has been removed.

Parameters:
dependencyName - the name of the removed dependency.
reference - the reference to the service that has been removed.
service - the service object for the specified referenced service.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.