at.ac.tuwien.infosys.sm4all.copal.rest.internal
Class ContextProcessorRegistryTracker

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
      extended by at.ac.tuwien.infosys.sm4all.copal.rest.internal.ContextProcessorRegistryTracker
All Implemented Interfaces:
DependencyTrackerCustomizer, org.osgi.framework.BundleActivator

public class ContextProcessorRegistryTracker
extends GenericActivator

This tracker set and unsets the ContextProcessorRegistry service with ServiceImpl as it changes its availability.

Author:
sanjin

Constructor Summary
ContextProcessorRegistryTracker(ServiceImpl service)
          Creates instance of ContextProcessorRegistry OSGi Tracker for specified ServiceImpl.
 
Method Summary
protected  void start()
          Called when all dependencies are met.
protected  void stop()
          Called when GenericActivator.start() was previously called and one of the dependencies has been unregistered.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
addingService, getDependency, modifiedService, register, register, removedService, start, stop, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextProcessorRegistryTracker

public ContextProcessorRegistryTracker(ServiceImpl service)
Creates instance of ContextProcessorRegistry OSGi Tracker for specified ServiceImpl.

Parameters:
service - the ServiceImpl.
Method Detail

start

protected void start()
Description copied from class: GenericActivator
Called when all dependencies are met.

Specified by:
start in class GenericActivator

stop

protected void stop()
Description copied from class: GenericActivator
Called when GenericActivator.start() was previously called and one of the dependencies has been unregistered.

Specified by:
stop in class GenericActivator


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