org.apache.sling.bundleresource.impl
Class Activator

java.lang.Object
  extended by org.apache.sling.bundleresource.impl.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener


Field Summary
static String BUNDLE_RESOURCE_ROOTS
          The name of the bundle manifest header listing the resource provider root paths provided by the bundle (value is "Sling-Bundle-Resources").
 
Constructor Summary
Activator()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
          Loads and unloads any components provided by the bundle whose state changed.
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_RESOURCE_ROOTS

public static final String BUNDLE_RESOURCE_ROOTS
The name of the bundle manifest header listing the resource provider root paths provided by the bundle (value is "Sling-Bundle-Resources").

See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Loads and unloads any components provided by the bundle whose state changed. If the bundle has been started, the components are loaded. If the bundle is about to stop, the components are unloaded.

Specified by:
bundleChanged in interface org.osgi.framework.BundleListener
Parameters:
event - The BundleEvent representing the bundle state change.


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.