Package fr.dyade.aaa.agent.osgi
Class Activator
- java.lang.Object
-
- fr.dyade.aaa.agent.osgi.Activator
-
- All Implemented Interfaces:
AgentServerActivator,org.osgi.framework.BundleActivator
public class Activator extends Object implements org.osgi.framework.BundleActivator, AgentServerActivator
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGENT_SERVER_ID_PROPERTYstatic StringAGENT_SERVER_STORAGE_PROPERTYstatic org.osgi.framework.BundleContextcontextstatic Loggerlogmonstatic StringOSGI_EXIT_PROPERTYProperty defining the policy towards the OSGi container in case of an error or a server stop.
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringgetProperty(String propName, String defaultValue)private shortgetShortProperty(String propName, short defaultValue)voidshutdown()voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Field Detail
-
logmon
public static final Logger logmon
-
AGENT_SERVER_ID_PROPERTY
public static final String AGENT_SERVER_ID_PROPERTY
- See Also:
- Constant Field Values
-
AGENT_SERVER_STORAGE_PROPERTY
public static final String AGENT_SERVER_STORAGE_PROPERTY
- See Also:
- Constant Field Values
-
OSGI_EXIT_PROPERTY
public static final String OSGI_EXIT_PROPERTY
Property defining the policy towards the OSGi container in case of an error or a server stop. If true the container exits.- See Also:
- Constant Field Values
-
context
public static org.osgi.framework.BundleContext context
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
getShortProperty
private short getShortProperty(String propName, short defaultValue)
-
shutdown
public void shutdown() throws Exception- Specified by:
shutdownin interfaceAgentServerActivator- Throws:
Exception
-
-