Package org.eclipse.net4j.util.om
Class OSGiActivator
- java.lang.Object
-
- org.eclipse.net4j.util.om.OSGiActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
- Direct Known Subclasses:
OSGiActivator.WithState
public abstract class OSGiActivator extends java.lang.Object implements org.osgi.framework.BundleActivatorA default implementation of an OSGibundle activatorfor OMbundles.- Author:
- Eike Stepper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOSGiActivator.StateHandlerSaves and loadsbundlestate.static classOSGiActivator.WithStateAn OSGiactivatorthat storesbundle statebetween sessions.
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContext
-
Constructor Summary
Constructors Constructor Description OSGiActivator(OMBundle omBundle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()protected voiddoStart()protected voiddoStop()booleanequals(java.lang.Object obj)OMBundlegetOMBundle()inthashCode()static voidstart(OMBundle bundle)voidstart(org.osgi.framework.BundleContext context)static voidstop(OMBundle bundle)voidstop(org.osgi.framework.BundleContext context)java.lang.StringtoString()static voidtraceStart(org.osgi.framework.BundleContext context)static voidtraceStop(org.osgi.framework.BundleContext context)
-
-
-
Constructor Detail
-
OSGiActivator
public OSGiActivator(OMBundle omBundle)
-
-
Method Detail
-
getOMBundle
public final OMBundle getOMBundle()
-
start
public final void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
stop
public final void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
doStart
protected void doStart() throws java.lang.Exception- Throws:
java.lang.Exception- Since:
- 2.0
-
doStop
protected void doStop() throws java.lang.Exception- Throws:
java.lang.Exception- Since:
- 2.0
-
start
public static void start(OMBundle bundle) throws java.lang.Exception
- Throws:
java.lang.Exception- Since:
- 3.3
-
stop
public static void stop(OMBundle bundle) throws java.lang.Exception
- Throws:
java.lang.Exception- Since:
- 3.3
-
traceStart
public static void traceStart(org.osgi.framework.BundleContext context)
- Since:
- 2.0
-
traceStop
public static void traceStop(org.osgi.framework.BundleContext context)
- Since:
- 2.0
-
-