ConfigurationProvider interface

Description

Currently the ConfMan only has a simple PropsLoader, which reads a properties file. We should generize this into an Extender or WhiteBoard pattern of a ConfigurationProvider interface, simpler than the Config Admin spec talks about.

For instance,

public interface ConfigurationProvider
{
void persist( Map configuration );

void addConfigurationObserver( String pidExpression, ConfigurationObserver observer );

void removeConfigurationObserver( String pidExpression, ConfigurationObserver observer );
}

public interface ConfigurationObserver
{
void configurationAdded( String pid, Map newData );

void configurationChanged( String pid, Map newData );

void configurationRemoved( String pid );
}

And that upon registering an observer, the provider must fire "configurationAdded" for all matching PIDs.

Environment

None

Assignee

NiclasH

Reporter

NiclasH

Labels

None

Priority

Major
Configure