Modifier and Type | Field and Description |
---|---|
private org.osgi.framework.Bundle |
bundle |
private org.osgi.framework.BundleContext |
bundleContext |
private java.util.concurrent.atomic.AtomicBoolean |
destroyed |
Constructor and Description |
---|
SimpleExtension(org.osgi.framework.Bundle bundle) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy should be synchronous and only return when the extension
has been fully destroyed.
|
protected abstract void |
doDestroy() |
protected abstract void |
doStart() |
protected java.lang.Object |
getLock() |
boolean |
isDestroyed() |
void |
start()
Start this extension.
|
private final org.osgi.framework.Bundle bundle
private final org.osgi.framework.BundleContext bundleContext
private final java.util.concurrent.atomic.AtomicBoolean destroyed
public boolean isDestroyed()
public void start() throws java.lang.Exception
Extension
public void destroy() throws java.lang.Exception
Extension
protected java.lang.Object getLock()
protected abstract void doStart() throws java.lang.Exception
java.lang.Exception
protected abstract void doDestroy() throws java.lang.Exception
java.lang.Exception