org.apache.sling.commons.classloader.impl
Class Activator
java.lang.Object
org.apache.sling.commons.classloader.impl.Activator
- All Implemented Interfaces:
- EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener
public class Activator
- extends Object
- implements org.osgi.framework.SynchronousBundleListener, org.osgi.framework.BundleActivator
This activator registers the dynamic class loader manager.
It listens for bundle events and reregisters the class loader manager
if a bundle event for a used bundle occurs.
Method Summary |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
|
protected void |
registerManagerFactory()
Register the dynamic class loader manager factory. |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
protected void |
unregisterManagerFactory()
Unregister the dynamic class loader manager factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator
public Activator()
start
public void start(org.osgi.framework.BundleContext context)
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
registerManagerFactory
protected void registerManagerFactory()
- Register the dynamic class loader manager factory.
unregisterManagerFactory
protected void unregisterManagerFactory()
- Unregister the dynamic class loader manager factory.
stop
public void stop(org.osgi.framework.BundleContext context)
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
- See Also:
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.