public abstract class OSGiActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
bundle activator for OM bundles.| Modifier and Type | Class and Description |
|---|---|
static class |
OSGiActivator.StateHandler
Saves and loads
bundle state. |
static class |
OSGiActivator.WithState
An OSGi
activator that stores bundle state between sessions. |
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext |
| Constructor and Description |
|---|
OSGiActivator(OMBundle omBundle) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
equals(java.lang.Object obj) |
OMBundle |
getOMBundle() |
int |
hashCode() |
void |
start(org.osgi.framework.BundleContext context) |
static void |
start(OMBundle bundle) |
void |
stop(org.osgi.framework.BundleContext context) |
static void |
stop(OMBundle bundle) |
java.lang.String |
toString() |
static void |
traceStart(org.osgi.framework.BundleContext context) |
static void |
traceStop(org.osgi.framework.BundleContext context) |
public OSGiActivator(OMBundle omBundle)
public final OMBundle getOMBundle()
public final void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorjava.lang.Exceptionpublic final void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorjava.lang.Exceptionpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Objectprotected final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionprotected void doStart()
throws java.lang.Exception
java.lang.Exceptionprotected void doStop()
throws java.lang.Exception
java.lang.Exceptionpublic static void start(OMBundle bundle) throws java.lang.Exception
java.lang.Exceptionpublic static void stop(OMBundle bundle) throws java.lang.Exception
java.lang.Exceptionpublic static void traceStart(org.osgi.framework.BundleContext context)
public static void traceStop(org.osgi.framework.BundleContext context)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html