You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Bill Havanki (JIRA)" <ji...@apache.org> on 2014/07/24 15:54:38 UTC
[jira] [Updated] (ACCUMULO-3012) Simplify DefaultConfiguration
[ https://issues.apache.org/jira/browse/ACCUMULO-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Havanki updated ACCUMULO-3012:
-----------------------------------
Status: Patch Available (was: In Progress)
> Simplify DefaultConfiguration
> -----------------------------
>
> Key: ACCUMULO-3012
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3012
> Project: Accumulo
> Issue Type: Sub-task
> Reporter: Bill Havanki
> Assignee: Bill Havanki
> Priority: Minor
> Fix For: 1.6.1, 1.7.0
>
>
> The current implementation of {{DefaultConfiguration}} has some downsides:
> * Its internal map of configuration defaults is built on-demand in its singleton instance, which drives the need to synchronize access to the singleton. The map could be built statically.
> * That same map could be made immutable as well.
> * Even though it uses a singleton, {{new DefaultConfiguration()}} is still permitted since the no-arg constructor isn't defined as private.
> * Calls to {{DefaultConfiguration.getInstance()}} cannot be easily mocked.
> * Its main method no longer has anything to do with it, and instead belongs in {{ConfigurationDocGen}}.
> Improve and simplify {{DefaultConfiguration}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)