org.universAAL.context.chemobile.osgi
Class Activator

Package class diagram package Activator
java.lang.Object
  extended by org.universAAL.context.chemobile.osgi.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

OSGI activator. Relays start and stop to Hub.

Author:
Alvaro Fides Valero

Field Summary
static String osgiConfigPath
          The path to the config file.
 
Constructor Summary
Activator()
           
 
Method Summary
static ModuleContext getModuleContext()
          Get the uAAL Module Context.
 void serviceChanged(org.osgi.framework.ServiceEvent event)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osgiConfigPath

public static final String osgiConfigPath
The path to the config file. Here so it's decoupled from Hub.

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
Specified by:
start in interface org.osgi.framework.BundleActivator

stop

public void stop(org.osgi.framework.BundleContext context)
Specified by:
stop in interface org.osgi.framework.BundleActivator

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener

getModuleContext

public static ModuleContext getModuleContext()
Get the uAAL Module Context.

Returns:
The module context.


Copyright © 2014 universAAL Consortium. All Rights Reserved.