Class Activator
- java.lang.Object
-
- net.ssehub.easy.producer.core.persistence.internal.Activator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class Activator extends java.lang.Object implements org.osgi.framework.BundleActivatorThe activator class controls the plug-in life cycle.
-
-
Constructor Summary
Constructors Constructor Description Activator()The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static org.osgi.framework.BundleContextgetContext()Getter for the context of this plug-in.static EASyLoggerFactory.EASyLoggergetLogger(java.lang.Class<?> clazz)Simplification ofEASyLoggerFactory.getLogger(Class, String)to retrieve a logger used within this plug-in.voidstart(org.osgi.framework.BundleContext bundleContext)voidstop(org.osgi.framework.BundleContext bundleContext)
-
-
-
Field Detail
-
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
-
context
private static org.osgi.framework.BundleContext context
-
-
Method Detail
-
getContext
static org.osgi.framework.BundleContext getContext()
Getter for the context of this plug-in.- Returns:
- The context of this plug-in.
-
start
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
getLogger
public static EASyLoggerFactory.EASyLogger getLogger(java.lang.Class<?> clazz)
Simplification ofEASyLoggerFactory.getLogger(Class, String)to retrieve a logger used within this plug-in.- Parameters:
clazz- The class to log.- Returns:
- A logger instance for this specified class and plug-in.
-
-