|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.context.che.Hub
public class Hub
Central class that takes care of starting and stopping application. It used to be the Activator class before splitting the OSGi logic.
Nested Class Summary | |
---|---|
static class |
Hub.Log
helper class to simplify the calls to LogUtils of MW. |
Field Summary | |
---|---|
static String |
COMMENTS
This is prepended to the above file. |
static String |
PROPS_FILE
Name of the config properties file. |
Constructor Summary | |
---|---|
Hub()
Default constructor. |
Method Summary | |
---|---|
static Hub.Log |
getLog(Class cl)
Gets a Log helper class. |
static Properties |
getProperties()
Gets the properties of the CHe. |
void |
ontologyAdded(String ontURI)
Notification when a new ontology is added. |
void |
ontologyRemoved(String ontURI)
Notification when an existing ontology is removed. |
static void |
setProperties(Properties prop)
Sets the properties of the CHe. |
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 |
---|
public static final String PROPS_FILE
public static final String COMMENTS
Constructor Detail |
---|
public Hub()
Method Detail |
---|
public void start(ModuleContext context)
context
- uaal module contextpublic final void stop() throws Exception
Exception
public void setuAALParser(MessageContentSerializer service)
service
- The parserpublic static void setProperties(Properties prop)
prop
- The Properties object containing ALL of the properties of the
CHegetProperties()
public static Properties getProperties()
setProperties(Properties)
public static Hub.Log getLog(Class cl)
cl
- Class that asks for a logger
public void ontologyAdded(String ontURI)
OntologyListener
ontologyAdded
in interface OntologyListener
ontURI
- the URI of the new ontology.public void ontologyRemoved(String ontURI)
OntologyListener
ontologyRemoved
in interface OntologyListener
ontURI
- the URI of the ontology.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |