[
https://issues.apache.org/jira/browse/HCATALOG-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Travis Crawford updated HCATALOG-531:
-------------------------------------
Attachment: HCATALOG-531_hcatcontext_enum.2.patch
Thanks for the review. I just went to apply and noticed this patch was affected
by the "core" submodule refactor in HCATALOG-518.
I rebased and merged trunk and there were no conflicts. I'm going to run our
integration test suite overnight and if it looks good will commit tomorrow.
> HCatContext should be an enum
> -----------------------------
>
> Key: HCATALOG-531
> URL: https://issues.apache.org/jira/browse/HCATALOG-531
> Project: HCatalog
> Issue Type: Improvement
> Reporter: Travis Crawford
> Assignee: Travis Crawford
> Fix For: 0.5
>
> Attachments: HCATALOG-531_hcatcontext_enum.1.patch,
> HCATALOG-531_hcatcontext_enum.2.patch
>
>
> [HCatContext|https://svn.apache.org/repos/asf/incubator/hcatalog/trunk/src/java/org/apache/hcatalog/common/HCatContext.java]
> is a container for a configuration that is globally accessible both on the
> FE & BE. Its purpose is to simplify enabling optional functionality.
> When I originally added this class I didn't use an enum, not knowing its the
> recommended way of doing singletons in java. Since we haven't make a release
> with this class I think we should change it now to the "Right Way" before it
> gets much use.
> I also added annotations showing the intended audience, and added some pretty
> good javadocs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira