com.eurotech.framework.core.configuration
Class ConfigurableComponentTracker

java.lang.Object
  extended by org.osgi.util.tracker.ServiceTracker
      extended by com.eurotech.framework.core.configuration.ConfigurableComponentTracker
All Implemented Interfaces:
org.osgi.util.tracker.ServiceTrackerCustomizer

public class ConfigurableComponentTracker
extends org.osgi.util.tracker.ServiceTracker

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.ServiceTracker
context, filter
 
Constructor Summary
ConfigurableComponentTracker(org.osgi.framework.BundleContext context, ConfigurationServiceImpl confService)
           
 
Method Summary
 Object addingService(org.osgi.framework.ServiceReference ref)
           
 void open(boolean trackAllServices)
           
 void removedService(org.osgi.framework.ServiceReference reference, Object service)
           
 
Methods inherited from class org.osgi.util.tracker.ServiceTracker
close, getService, getService, getServiceReference, getServiceReferences, getServices, getServices, getTracked, getTrackingCount, isEmpty, modifiedService, open, remove, size, waitForService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableComponentTracker

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

open

public void open(boolean trackAllServices)
Overrides:
open in class org.osgi.util.tracker.ServiceTracker

addingService

public Object addingService(org.osgi.framework.ServiceReference ref)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
Overrides:
addingService in class org.osgi.util.tracker.ServiceTracker

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
Overrides:
removedService in class org.osgi.util.tracker.ServiceTracker


Copyright © 2013. All Rights Reserved.