org.universAAL.context.prof.serv
Class Hub

Package class diagram package Hub
java.lang.Object
  extended by org.universAAL.context.prof.serv.Hub

public class Hub
extends Object

Central class that takes care of starting and stopping application. It used to be the Activator class before splitting the OSGi logic.

Author:
alfiva

Field Summary
protected static ModuleContext moduleContext
          uAAL Module context.
protected static MessageContentSerializerEx parser
          Turtle parser
protected static SCallee scallee
          Service Callee
protected static SCaller scaller
          Service Caller
 
Constructor Summary
Hub()
          Default constructor.
 
Method Summary
 void setuAALParser(MessageContentSerializerEx service)
          Set the turtle-uaal parser.
 void start(ModuleContext context)
          To be called when application starts.
 void stop()
          To be called when application stops.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scallee

protected static SCallee scallee
Service Callee


scaller

protected static SCaller scaller
Service Caller


parser

protected static MessageContentSerializerEx parser
Turtle parser


moduleContext

protected static ModuleContext moduleContext
uAAL Module context.

Constructor Detail

Hub

public Hub()
Default constructor.

Method Detail

start

public void start(ModuleContext context)
To be called when application starts. Used to be Activator.start().

Parameters:
context - uaal module context

stop

public final void stop()
                throws Exception
To be called when application stops. Used to be Activator.stop().

Throws:
Exception

setuAALParser

public void setuAALParser(MessageContentSerializerEx service)
Set the turtle-uaal parser. Make sure it's set at least once before start().

Parameters:
service - The parser


Copyright © 2014 universAAL Consortium. All Rights Reserved.