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
Modifier and TypeClassDescriptionstatic class
Saves and loadsbundle
state.static class
An OSGiactivator
that storesbundle state
between sessions. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
clone()
protected void
doStart()
protected void
doStop()
final boolean
final OMBundle
final int
hashCode()
static void
final void
start
(org.osgi.framework.BundleContext context) static void
final void
stop
(org.osgi.framework.BundleContext context) final String
toString()
static void
traceStart
(org.osgi.framework.BundleContext context) static void
traceStop
(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:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
equals
-
hashCode
public final int hashCode() -
toString
-
clone
- Overrides:
clone
in 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
-