org.ops4j.pax.configmanager.internal.ConfigurationUpdater Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pax-confman-propsloader Show documentation
Show all versions of pax-confman-propsloader Show documentation
Pax Configuration Manger Service provides a framework to read files (default property files handling is supplied)
from a directory and use ConfigurationAdmin to update the service with the properties loaded.
The newest version!
package org.ops4j.pax.configmanager.internal;
import java.io.IOException;
import org.ops4j.pax.configmanager.IConfigurationUpdater;
import org.osgi.framework.InvalidSyntaxException;
public class ConfigurationUpdater
implements IConfigurationUpdater
{
private ConfigurationAdminFacade m_adminFacade;
public ConfigurationUpdater( final ConfigurationAdminFacade adminFacade )
{
super();
this.m_adminFacade = adminFacade;
}
public void updateConfiguration( final String servicePid )
throws IllegalStateException,
IOException,
InvalidSyntaxException
{
this.m_adminFacade.registerConfigurations( servicePid, true );
}
}