org.universAAL.ri.servicegateway.osgi
Class Activator

Package class diagram package Activator
java.lang.Object
  extended by org.universAAL.ri.servicegateway.osgi.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Main class for HTTP Services Gateway. It handles the registration of servlets which provides different services based on URI. It register a Login servlet and uses a Service Tracker to track for GatewayPort objects and register them using the url and dataDir methods of GatewayPort.

Author:
Mario Latronico, eandgrg

Field Summary
static org.osgi.framework.BundleContext context
           
protected static ModuleContext mcontext
          universAAL ModuleContext
 
Constructor Summary
Activator()
           
 
Method Summary
static ModuleContext getModuleContext()
           
 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

context

public static org.osgi.framework.BundleContext context

mcontext

protected static ModuleContext mcontext
universAAL ModuleContext

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

getModuleContext

public static ModuleContext getModuleContext()


Copyright © 2014 universAAL Consortium. All Rights Reserved.