You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2008/08/21 02:18:44 UTC

[jira] Resolved: (VELOCITY-227) ResourceFactory not extensible

     [ https://issues.apache.org/jira/browse/VELOCITY-227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-227.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Trivial...  not sure why this wasn't done earlier.

> ResourceFactory not extensible
> ------------------------------
>
>                 Key: VELOCITY-227
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-227
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.5
>         Environment: Operating System: All
> Platform: All
>            Reporter: Charles Morehead
>            Priority: Minor
>             Fix For: 1.6
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org