Package org.apache.sis.internal.system
Class OSGiActivator
java.lang.Object
org.apache.sis.internal.system.OSGiActivator
- All Implemented Interfaces:
EventListener,org.osgi.framework.BundleActivator,org.osgi.framework.BundleListener
public final class OSGiActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener
Bundle activator for OSGi environment.
This class is declared in the
maven-bundle-plugin configuration in the
sis-utility/pom.xml file. This class should not be used directly.- Since:
- 0.3
- Version:
- 0.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) Invoked when another module has been installed or un-installed.voidstart(org.osgi.framework.BundleContext context) Invoked when this bundle is started.voidstop(org.osgi.framework.BundleContext context) Invoked when this bundle is stopped.
-
Constructor Details
-
OSGiActivator
public OSGiActivator()Creates a new bundle activator.
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext context) Invoked when this bundle is started.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Parameters:
context- the execution context of the bundle being started.
-
stop
Invoked when this bundle is stopped. This method shutdowns thesis-utilitythreads.- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Parameters:
context- the execution context of the bundle being stopped.- Throws:
Exception- if an error occurred during unregistration of the supervisor MBean or resource disposal.
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) Invoked when another module has been installed or un-installed. This method notifies the Apache SIS library that the classpath may have changed.- Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener- Parameters:
event- the event that describe the life-cycle change.
-