Jean Helou created JAMES-2547:
---------------------------------

             Summary: Replace concrete PropertiesConfiguration type by 
Configuration interface in PropertiesProvider
                 Key: JAMES-2547
                 URL: https://issues.apache.org/jira/browse/JAMES-2547
             Project: James Server
          Issue Type: Improvement
          Components: configuration
            Reporter: Jean Helou


This makes testing configuration components easier.

For exemple  subclassing  PropertiesProvider to make it return an in memory 
configuration such as a MapConfiguration instead of being bound to the concrete 
PropertiesConfiguration implementation.

I have found no place in the project where relying on the concrete type is 
actually useful. All uses were replaceable by the interface or by a static call 
to the top of the hierarchy (AbstractConfiguration).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to