org.universAAL.context.chemobile
Class Hub

Package class diagram package Hub
java.lang.Object
  extended by org.universAAL.context.chemobile.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 File confHome
          Config folder.
 
Constructor Summary
Hub()
           
 
Method Summary
 void setuAALParser(MessageContentSerializer 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

confHome

protected static File confHome
Config folder.

Constructor Detail

Hub

public Hub()
Method Detail

start

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

Parameters:
context - uaal module context
Throws:
Exception - If anything goes wrong

stop

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

Throws:
Exception

setuAALParser

public void setuAALParser(MessageContentSerializer service)
Set the turtle-uaal parser. Make sure it's called after start().

Parameters:
service - The parser


Copyright © 2014 universAAL Consortium. All Rights Reserved.