All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ops4j.pax.configmanager.internal.ConfigurationUpdater Maven / Gradle / Ivy

Go to download

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 );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy