ConfigurationProvider interface
-------------------------------

                 Key: CONFMAN-5
                 URL: http://issues.ops4j.org/jira/browse/CONFMAN-5
             Project: Pax ConfMan
          Issue Type: New Feature
            Reporter: Niclas Hedhman
            Assignee: Niclas Hedhman


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to