org.ops4j.pax.coin.service.internal.plugin
Class ConfigPluginTracker

java.lang.Object
  extended by org.ops4j.pax.coin.repository.AbstractTracker<ConfigPlugin,org.osgi.service.cm.ConfigurationPlugin>
      extended by org.ops4j.pax.coin.service.internal.plugin.ConfigPluginTracker

public class ConfigPluginTracker
extends AbstractTracker<ConfigPlugin,org.osgi.service.cm.ConfigurationPlugin>

Tracks configuration plugins in OSGi Service Registry.

Since:
0.3.0, March 09, 2008
Author:
Alin Dreghiciu

Constructor Summary
ConfigPluginTracker(org.osgi.framework.BundleContext bundleContext, ConfigPluginRepository repository)
          Constructor.
 
Method Summary
protected  ConfigPlugin create(org.osgi.framework.ServiceReference reference, Object service)
          Creates a configuration plugin out of an OSGi configuration plugin.
 
Methods inherited from class org.ops4j.pax.coin.repository.AbstractTracker
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigPluginTracker

public ConfigPluginTracker(org.osgi.framework.BundleContext bundleContext,
                           ConfigPluginRepository repository)
Constructor.

Parameters:
bundleContext - bundle context
repository - configuration provider repository
Throws:
org.ops4j.lang.NullArgumentException - - If bundle context is null - If repository is null
Method Detail

create

protected ConfigPlugin create(org.osgi.framework.ServiceReference reference,
                              Object service)
Creates a configuration plugin out of an OSGi configuration plugin.

Overrides:
create in class AbstractTracker<ConfigPlugin,org.osgi.service.cm.ConfigurationPlugin>
Parameters:
reference - service refrence of the tracked service
service - tracked service
Returns:
created object
See Also:
AbstractTracker.create(ServiceReference, Object)


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.