You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Leandro Rodrigo Saad Cruz <le...@ibnetwork.com.br> on 2004/02/19 21:56:23 UTC

[CONTRIB/RFC] Adding VelocityEngine.getResourceLoaderForTemplate()

I've added this method to VelocityEngine :

public ResourceLoader getResourceLoaderForTemplate(String templateName);

To provide client applications a hint from where velocity loaded the
template. 

-- 
Leandro Rodrigo Saad Cruz
InterBusiness Tecnologia e Serviços
OJB - db.apache.org/ojb
XINGU - xingu.sf.net

Re: [CONTRIB/RFC] Adding VelocityEngine.getResourceLoaderForTemplate()

Posted by Leandro Rodrigo Saad Cruz <le...@ibnetwork.com.br>.
I dunno if other users have the same needs. But I writting an app that
uses multiple template paths and, sometimes, I need to know from which
path/resourceLoader my template will be loaded.


On Thu, 2004-02-19 at 20:18, Geir Magnusson Jr wrote:
> why?
> 
> My initial reaction is worry about exposing the resource loader to the  
> app....
> 
> On Feb 19, 2004, at 3:56 PM, Leandro Rodrigo Saad Cruz wrote:
> 
> > I've added this method to VelocityEngine :
> >
> > public ResourceLoader getResourceLoaderForTemplate(String  
> > templateName);
> >
> > To provide client applications a hint from where velocity loaded the
> > template.
> >
> > --  
> > Leandro Rodrigo Saad Cruz
> > InterBusiness Tecnologia e Serviços
> > OJB - db.apache.org/ojb
> > XINGU - xingu.sf.net
> > <FileResourceLoader.patch><ResourceLoader.patch><ResourceManager.patch> 
> > <ResourceManagerImpl.patch><RuntimeInstance.patch><VelocityEngine.patch 
> > >---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
-- 
Leandro Rodrigo Saad Cruz
InterBusiness Tecnologia e Serviços
OJB - db.apache.org/ojb
XINGU - xingu.sf.net


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


Re: [CONTRIB/RFC] Adding VelocityEngine.getResourceLoaderForTemplate()

Posted by Geir Magnusson Jr <ge...@4quarters.com>.
why?

My initial reaction is worry about exposing the resource loader to the  
app....

On Feb 19, 2004, at 3:56 PM, Leandro Rodrigo Saad Cruz wrote:

> I've added this method to VelocityEngine :
>
> public ResourceLoader getResourceLoaderForTemplate(String  
> templateName);
>
> To provide client applications a hint from where velocity loaded the
> template.
>
> --  
> Leandro Rodrigo Saad Cruz
> InterBusiness Tecnologia e Serviços
> OJB - db.apache.org/ojb
> XINGU - xingu.sf.net
> <FileResourceLoader.patch><ResourceLoader.patch><ResourceManager.patch> 
> <ResourceManagerImpl.patch><RuntimeInstance.patch><VelocityEngine.patch 
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


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