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
A default implementation of an OSGi
bundle activator for OM bundles.- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSaves and loadsbundlestate.static classAn OSGiactivatorthat storesbundle statebetween sessions. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Objectclone()protected voiddoStart()protected voiddoStop()final booleanfinal OMBundlefinal inthashCode()static voidfinal voidstart(org.osgi.framework.BundleContext context) static voidfinal voidstop(org.osgi.framework.BundleContext context) final StringtoString()static voidtraceStart(org.osgi.framework.BundleContext context) static voidtraceStop(org.osgi.framework.BundleContext context)
-
Field Details
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext- Since:
- 2.0
-
-
Constructor Details
-
OSGiActivator
-
-
Method Details
-
getOMBundle
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
equals
-
hashCode
public final int hashCode() -
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
doStart
- Throws:
Exception- Since:
- 2.0
-
doStop
- Throws:
Exception- Since:
- 2.0
-
start
- Throws:
Exception- Since:
- 3.3
-
stop
- Throws:
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
-