public abstract class OSGiActivator extends 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 Object |
clone() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
equals(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) |
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 Exception
start
in interface org.osgi.framework.BundleActivator
Exception
public final void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
Exception
protected final Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static void traceStart(org.osgi.framework.BundleContext context)
public static void traceStop(org.osgi.framework.BundleContext context)
Copyright (c) 2014 Eike Stepper (Berlin, 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