at.ac.tuwien.infosys.sm4all.copal.api.osgi
Class DependencyTracker

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.osgi.DependencyTracker
All Implemented Interfaces:
org.osgi.util.tracker.ServiceTrackerCustomizer

public class DependencyTracker
extends java.lang.Object
implements org.osgi.util.tracker.ServiceTrackerCustomizer

This class implements ServiceTrackerCustomizer interface and converts the calls to ServiceTrackerCustomizer's method into calls to DependencyTrackerCustomizer's respective methods.

Author:
sanjin

Constructor Summary
DependencyTracker(java.lang.String dependencyName, DependencyTrackerCustomizer customizer)
          Creates instance of ServiceTrackerCustomizer for dependency with given name and calls methods on given DependencyTrackerCustomizer .
 
Method Summary
 java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
           
 void modifiedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
           
 void removedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyTracker

public DependencyTracker(java.lang.String dependencyName,
                         DependencyTrackerCustomizer customizer)
Creates instance of ServiceTrackerCustomizer for dependency with given name and calls methods on given DependencyTrackerCustomizer .

Parameters:
dependencyName - the name of the dependency to be tracked.
customizer - the DependencyTrackerCustomizer which methods should be called.
Method Detail

addingService

public java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

modifiedService

public void modifiedService(org.osgi.framework.ServiceReference reference,
                            java.lang.Object service)
Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           java.lang.Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer


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