com.db4o.osgi
Class Db4oActivator
java.lang.Object
com.db4o.osgi.Db4oActivator
public class Db4oActivator
- extends java.lang.Object
db4o-osgi bundle BundleActivator implementation.
Db4oActivator customizes the way the bundle is started
and stopped by the Framework.
Field Summary |
static java.lang.String |
BUNDLE_ID
|
Method Summary |
void |
start(BundleContext context)
This method is called when the bundle is started by the Framework. |
void |
stop(BundleContext context)
This method is called when the bundle is stopped by the Framework. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE_ID
public static final java.lang.String BUNDLE_ID
- See Also:
- Constant Field Values
Db4oActivator
public Db4oActivator()
start
public void start(BundleContext context)
throws java.lang.Exception
- This method is called when the bundle is started by the Framework.
The method registers Db4oService, making it available for clients.
- Parameters:
context
- The execution context of the bundle being started.
- Throws:
java.lang.Exception
- If this method throws an exception, this
bundle is marked as stopped and the Framework will remove this
bundle's listeners, unregister all services registered by this
bundle, and release all services used by this bundle.
stop
public void stop(BundleContext context)
throws java.lang.Exception
- This method is called when the bundle is stopped by the Framework.
- Parameters:
context
- The execution context of the bundle being stopped.
- Throws:
java.lang.Exception
- If this method throws an exception, the
bundle is still marked as stopped, and the Framework will remove
the bundle's listeners, unregister all services registered by the
bundle, and release all services used by the bundle.
Copyright 2007 db4objects Inc. All rights reserved.