org.apache.felix.ipojo.handler.extender
Class ExtenderManager

java.lang.Object
  extended by org.apache.felix.ipojo.handler.extender.BundleTracker
      extended by org.apache.felix.ipojo.handler.extender.ExtenderManager

public class ExtenderManager
extends BundleTracker

Track and manage extensions.

Author:
Felix Project Team

Constructor Summary
ExtenderManager(ExtenderModelHandler handler, String extension, String bind, String unbind)
          Constructor.
 
Method Summary
protected  void addedBundle(Bundle bundle)
          A bundle arrives.
protected  void removedBundle(Bundle bundle)
          A bundle is stopping.
 
Methods inherited from class org.apache.felix.ipojo.handler.extender.BundleTracker
close, getBundles, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtenderManager

public ExtenderManager(ExtenderModelHandler handler,
                       String extension,
                       String bind,
                       String unbind)
Constructor.

Parameters:
handler - the attached handler.
extension - the looked extension.
bind - the onArrival method
unbind - the onDeparture method.
Method Detail

addedBundle

protected void addedBundle(Bundle bundle)
A bundle arrives. Checks if the bundle match with the looked extension, if so call the arrival callback.

Specified by:
addedBundle in class BundleTracker
Parameters:
bundle - the arriving bundle.
See Also:
BundleTracker.addedBundle(org.osgi.framework.Bundle)

removedBundle

protected void removedBundle(Bundle bundle)
A bundle is stopping. Check if the bundle was managed, if so call the remove departure callback.

Specified by:
removedBundle in class BundleTracker
Parameters:
bundle - the leaving bundle.
See Also:
BundleTracker.removedBundle(org.osgi.framework.Bundle)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.