|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.knopflerfish.framework.MainClassBundleActivator
public class MainClassBundleActivator
BundleActivator implementation that can handle a jar file with just a Main-class attribute.
When the start method is called, a new thread is started for the bundle and the static main method is called with zero arguments.
When the stop method is called, any static method named "stop" is called.
| Constructor Summary | |
|---|---|
MainClassBundleActivator(java.lang.Class clazz)
|
|
| Method Summary | |
|---|---|
void |
run()
|
void |
start(BundleContext bc)
Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle. |
void |
stop(BundleContext bc)
Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainClassBundleActivator(java.lang.Class clazz)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void start(BundleContext bc)
throws BundleException
BundleActivatorThis method must complete and return to its caller in a timely manner.
start in interface BundleActivatorbc - The execution context of the bundle being started.
BundleExceptionBundle.start()
public void stop(BundleContext bc)
throws BundleException
BundleActivatorBundleActivator.start
method started. There should be no active threads that were started by
this bundle when this bundle returns. A stopped bundle must not call any
Framework objects.
This method must complete and return to its caller in a timely manner.
stop in interface BundleActivatorbc - The execution context of the bundle being stopped.
BundleExceptionBundle.stop()public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||