Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      24758

      Description

      The class org.apache.velocity.runtime.resource.ResourceFactory provides
      no mechanism for allowing sub-classes of Template or ContentResources
      to be returned.

      Since ResourceManagerImpl makes a call to ResourceFactory.getResource(),
      the only way to override the behavior is to subclass ResourceManagerImpl
      and cut-paste-then-modify the code for loadResource().

      At the very least, moving the ResourceFactory.getResource() call into
      a separate, protected method in ResourceManagerImpl would greatly simplify
      sub-classing Templates and/or ContentResources.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cmore@atg.com Charles Morehead
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: