org.apache.felix.ipojo
Class Extender

java.lang.Object
  extended by org.apache.felix.ipojo.Extender
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

public class Extender
extends java.lang.Object
implements org.osgi.framework.SynchronousBundleListener, org.osgi.framework.BundleActivator

iPOJO Extender. Looks for iPOJO Bundle and start the management of these bundles if needed.

Author:
Felix Project Team

Constructor Summary
Extender()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
          Bundle Listener Notification.
 org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
          Compute the bundle context from the bundle class by introspection.
 void start(org.osgi.framework.BundleContext context)
          iPOJO Starting method.
 void stop(org.osgi.framework.BundleContext context)
          Stop the iPOJO Management.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extender

public Extender()
Method Detail

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Bundle Listener Notification.

Specified by:
bundleChanged in interface org.osgi.framework.BundleListener
Parameters:
event - : the bundle event.
See Also:
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)

start

public void start(org.osgi.framework.BundleContext context)
iPOJO Starting method.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - : iPOJO bundle context.
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext context)
Stop the iPOJO Management.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - : bundle context.
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

getBundleContext

public org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)
Compute the bundle context from the bundle class by introspection.

Parameters:
bundle - : bundle.
Returns:
the bundle context object or null if not found.