org.universAAL.context.che.osgi
Class Activator

Package class diagram package Activator
java.lang.Object
  extended by org.universAAL.context.che.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:
alfiva

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 arg0)
           
 
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)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext arg0)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

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. This is only needed for integration test.

Returns:
the module context


Copyright © 2014 universAAL Consortium. All Rights Reserved.