// Initialize existing synchronization providers.
for (String name : root.listSynchronizationProviders())
{
// Get the synchronization provider's configuration.
// This will automatically decode and validate its properties.
SynchronizationProviderCfg config = root.getSynchronizationProvider(name);
// Register as a change listener for this synchronization provider
// entry so that we can be notified when it is disabled or enabled.
config.addChangeListener(this);
// Ignore this synchronization provider if it is disabled.
if (config.isEnabled())
{
// Perform initialization, load the synchronization provider's
// implementation class and initialize it.
SynchronizationProvider<SynchronizationProviderCfg> provider =
getSynchronizationProvider(config);
// Register the synchronization provider with the Directory Server.
DirectoryServer.registerSynchronizationProvider(provider);
// Put this synchronization provider in the hash map so that we will be
// able to find it if it is deleted or disabled.
registeredProviders.put(config.dn(), provider);
}
}
}