Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-531

HCatContext should be an enum

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • None
    • None

    Description

      HCatContext 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.

      Attachments

        1. HCATALOG-531_hcatcontext_enum.1.patch
          9 kB
          Travis Crawford
        2. HCATALOG-531_hcatcontext_enum.2.patch
          9 kB
          Travis Crawford

        Activity

          People

            traviscrawford Travis Crawford
            traviscrawford Travis Crawford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: