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 TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) Invoked when another module has been installed or un-installed.void
start
(org.osgi.framework.BundleContext context) Invoked when this bundle is started.void
stop
(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:
start
in 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-utility
threads.- Specified by:
stop
in 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:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
- Parameters:
event
- the event that describe the life-cycle change.
-