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 SummaryNested Classes Modifier and Type Class Description static classOSGiActivator.StateHandlerSaves and loadsbundlestate.static classOSGiActivator.WithStateAn OSGiactivatorthat storesbundle statebetween sessions.
 - 
Field SummaryFields Modifier and Type Field Description protected org.osgi.framework.BundleContextbundleContext
 - 
Constructor SummaryConstructors Constructor Description OSGiActivator(OMBundle omBundle)
 - 
Method SummaryAll 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- 
OSGiActivatorpublic OSGiActivator(OMBundle omBundle) 
 
- 
 - 
Method Detail- 
getOMBundlepublic final OMBundle getOMBundle() 
 - 
startpublic final void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
- startin interface- org.osgi.framework.BundleActivator
- Throws:
- java.lang.Exception
 
 - 
stoppublic final void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
- stopin interface- org.osgi.framework.BundleActivator
- Throws:
- java.lang.Exception
 
 - 
equalspublic final boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic final int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic final java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
cloneprotected final java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
- clonein class- java.lang.Object
- Throws:
- java.lang.CloneNotSupportedException
 
 - 
doStartprotected void doStart() throws java.lang.Exception- Throws:
- java.lang.Exception
- Since:
- 2.0
 
 - 
doStopprotected void doStop() throws java.lang.Exception- Throws:
- java.lang.Exception
- Since:
- 2.0
 
 - 
startpublic static void start(OMBundle bundle) throws java.lang.Exception - Throws:
- java.lang.Exception
- Since:
- 3.3
 
 - 
stoppublic static void stop(OMBundle bundle) throws java.lang.Exception - Throws:
- java.lang.Exception
- Since:
- 3.3
 
 - 
traceStartpublic static void traceStart(org.osgi.framework.BundleContext context) - Since:
- 2.0
 
 - 
traceStoppublic static void traceStop(org.osgi.framework.BundleContext context) - Since:
- 2.0
 
 
- 
 
-