com.eurotech.framework.core.configuration
Class ConfigurableComponentBundleTracker

java.lang.Object
  extended by org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>
      extended by com.eurotech.framework.core.configuration.ConfigurableComponentBundleTracker
All Implemented Interfaces:
org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>

public class ConfigurableComponentBundleTracker
extends org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>

ServiceTracker to track all the ConfigurabaleComponents. When the ConfigurableComponet is found it is then registered to the ConfigurationService.


Field Summary
 
Fields inherited from class org.osgi.util.tracker.BundleTracker
context
 
Constructor Summary
ConfigurableComponentBundleTracker(org.osgi.framework.BundleContext context, ConfigurationServiceImpl confService)
           
 
Method Summary
 org.osgi.framework.Bundle addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
           
 void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object)
           
 void open()
           
 void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle bnd)
           
 
Methods inherited from class org.osgi.util.tracker.BundleTracker
close, getBundles, getObject, getTracked, getTrackingCount, isEmpty, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableComponentBundleTracker

public ConfigurableComponentBundleTracker(org.osgi.framework.BundleContext context,
                                          ConfigurationServiceImpl confService)
                                   throws org.osgi.framework.InvalidSyntaxException
Throws:
org.osgi.framework.InvalidSyntaxException
Method Detail

open

public void open()
Overrides:
open in class org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>

modifiedBundle

public void modifiedBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event,
                           org.osgi.framework.Bundle object)
Specified by:
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
Overrides:
modifiedBundle in class org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>

addingBundle

public org.osgi.framework.Bundle addingBundle(org.osgi.framework.Bundle bundle,
                                              org.osgi.framework.BundleEvent event)
Specified by:
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
Overrides:
addingBundle in class org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>

removedBundle

public void removedBundle(org.osgi.framework.Bundle bundle,
                          org.osgi.framework.BundleEvent event,
                          org.osgi.framework.Bundle bnd)
Specified by:
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
Overrides:
removedBundle in class org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>


Copyright © 2013. All Rights Reserved.