Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-16

Suggested enhancement for ChainListener

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0
    • None
    • XML Configuration
    • None
    • Operating System: Windows XP
      Platform: PC

    • 32911

    Description

      There is an interesting limitation when using ChainListener and ConfigRuleSet
      together. ChainListener allows you to specify any RuleSet you wish which is
      nice and flexible. ConfigRuleSet allows you to override certain defaults
      (such as the class to be used to create new instances of Catalog.)

      The problem is when you use these two together. You can specify ConfigRuleSet
      as a context init parameter but you can not go the extra step of using the
      conveinance methods to override its defaults. So there is no way to tell
      ChainListener that you want to use the ConfigRuleSet with a specific Catalog
      class (for instance.) The same limitation also applies to ChainServlet.

      What about a scheme where you define an additional context init parameter such
      as RULE_SET_PARAMETER? The scheme would be that you could have
      RULE_SET_PARAMETER[1], RULE_SET_PARAMETER[2], etc. The values could be
      defined as method:value and you could use the reflection API to call the
      appropriate methods on the rule set.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              schof Sean Schofield
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: