org.ops4j.pax.coin.service.internal.provider
Class ConfigSwitchFactory

java.lang.Object
  extended by org.ops4j.pax.coin.service.internal.provider.ConfigSwitchFactory
All Implemented Interfaces:
Listener<ConfigTarget>, ConfigTargetListener

public class ConfigSwitchFactory
extends Object
implements ConfigTargetListener

Creates configuration synchornizers for each unique pid and acts as a listener filter per pid.

Since:
0.3.0, February 27, 2008
Author:
Alin Dreghiciu

Constructor Summary
ConfigSwitchFactory(ConfigProviderRepository repository)
          Constructor.
 
Method Summary
 void registered(ConfigTarget observed)
           
 void unregistered(ConfigTarget observed)
          Unregisters the unregistred configuration target from configuration synchronizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigSwitchFactory

public ConfigSwitchFactory(ConfigProviderRepository repository)
Constructor.

Parameters:
repository - configuration providers repository
Method Detail

registered

public void registered(ConfigTarget observed)
Specified by:
registered in interface Listener<ConfigTarget>
See Also:
Listener.registered(Object)

unregistered

public void unregistered(ConfigTarget observed)
Unregisters the unregistred configuration target from configuration synchronizer. If the synchronizer does not have any more configuration targets to synchronize it will "destroy" the synchornizer.

Specified by:
unregistered in interface Listener<ConfigTarget>
See Also:
Listener.unregistered(Object)


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