|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.squeakysand.osgi.framework.BasicBundleActivator
public class BasicBundleActivator
Simple BundleActivator that logs start and stop events, and holds on to a reference to the BundleContext object.
| Constructor Summary | |
|---|---|
BasicBundleActivator()
Creates a BasicBundleActivator instance that logs using its own logger. |
|
BasicBundleActivator(Logger logger)
Creates a BasicBundleActivator instance that logs using the supplied logger. |
|
| Method Summary | |
|---|---|
org.osgi.framework.BundleContext |
getContext()
Accessor for the BundleContext object associated with this BundleActivator. |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicBundleActivator()
BasicBundleActivator instance that logs using its own logger.
public BasicBundleActivator(Logger logger)
BasicBundleActivator instance that logs using the supplied logger.
logger - the Logger instance to use, cannot be null.| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorException
public void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionpublic org.osgi.framework.BundleContext getContext()
BundleContext object associated with this BundleActivator.
BundleContext object supplied when the start(BundleContext) method was called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||