at.ac.tuwien.infosys.sm4all.copal.api.helpers
Class ContextActivator

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.helpers.AbstractGenericActivator
      extended by at.ac.tuwien.infosys.sm4all.copal.api.helpers.ContextActivator
All Implemented Interfaces:
DependencyTrackerCustomizer, org.osgi.framework.BundleActivator

public class ContextActivator
extends AbstractGenericActivator

This class is an OSGi Activator used to register and unregister ContextEventTypes defined in specified Context as ContextEventTypeRegistry service, on which it depends, change its availability.


Constructor Summary
ContextActivator(Context context)
          Create instance of OSGI Activator which registers and unregistered ContextEventTypes defined in specified Context.
 
Method Summary
 ContextEventType[] getRegisteredEventTypes()
           
protected  void start()
          Called when all dependencies are met.
protected  void stop()
          Called when AbstractGenericActivator.start() was previously called and one of the dependencies has been unregistered.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.helpers.AbstractGenericActivator
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

ContextActivator

public ContextActivator(Context context)
Create instance of OSGI Activator which registers and unregistered ContextEventTypes defined in specified Context.

Parameters:
context - the context.
Method Detail

getRegisteredEventTypes

public ContextEventType[] getRegisteredEventTypes()
Returns:
all successfully registered ContextEventTypes defined in specified Context.

start

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

Specified by:
start in class AbstractGenericActivator

stop

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

Specified by:
stop in class AbstractGenericActivator


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