You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2006/11/05 19:51:21 UTC
[jira] Updated: (VELOCITY-227) ResourceFactory not extensible
[ http://issues.apache.org/jira/browse/VELOCITY-227?page=all ]
Henning Schmiedehausen updated VELOCITY-227:
--------------------------------------------
Bugzilla Id: (was: 24758)
Component/s: Engine
(was: Source)
Affects Version/s: 1.5
(was: 1.6)
Should be easily doable even for 1.5. Moving it forward, will look into it unless Will beats me to it.
> ResourceFactory not extensible
> ------------------------------
>
> Key: VELOCITY-227
> URL: http://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
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org