You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Antoine Duprat (JIRA)" <se...@james.apache.org> on 2018/09/17 06:36:00 UTC
[jira] [Closed] (JAMES-2547) Replace concrete
PropertiesConfiguration type by Configuration interface in
PropertiesProvider
[ https://issues.apache.org/jira/browse/JAMES-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Duprat closed JAMES-2547.
---------------------------------
> 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
> Priority: Major
> Fix For: 3.2.0
>
>
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org