You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Iwan Vosloo <iw...@global.co.za> on 2005/01/20 21:15:12 UTC
Programmatically getting to/setting ResourceLoader
Hello,
two questions re: ResourceLoaders:
1) is it possible to programatically set the ResourceLoader __instance__ used by velocity - in other words not just set it by specifying its class in a property?
2) is it possible to programmatically get the current __instance__ of the configured ResourceLoader?
Thanks
-Iwan Vosloo
Powered by Tiscali - http://www.tiscali.co.za
Re: Programmatically getting to/setting ResourceLoader
Posted by Shinobu Kawai Yoshida <sh...@gmail.com>.
Hi,
> > 2) is it possible to programmatically get the current __instance__ of the
> > configured ResourceLoader?
On Thu, 20 Jan 2005 22:35:29 -0800, Will Glass-Husain <wg...@forio.com> wrote:
> But no, you
> can not retrieve it later. (For one thing, there might be multiple resource
> loaders).
If you have a particular Resource object, you can the ResourceLoader
used to load /that/ Resource by Resource#getResourceLoader()
http://jakarta.apache.org/velocity/api/org/apache/velocity/runtime/resource/Resource.html#getResourceLoader()
Best regards,
-- Shinobu
--
Shinobu "Kawai" Yoshida <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Programmatically getting to/setting ResourceLoader
Posted by Will Glass-Husain <wg...@forio.com>.
Not in a released version. But in the subversion source code, you can set
an instance of the ResourceLoader when configuring Velocity. But no, you
can not retrieve it later. (For one thing, there might be multiple resource
loaders).
WILL
----- Original Message -----
From: "Iwan Vosloo" <iw...@global.co.za>
To: <ve...@jakarta.apache.org>
Sent: Thursday, January 20, 2005 12:15 PM
Subject: Programmatically getting to/setting ResourceLoader
> Hello,
>
> two questions re: ResourceLoaders:
>
> 1) is it possible to programatically set the ResourceLoader __instance__
> used by velocity - in other words not just set it by specifying its class
> in a property?
>
> 2) is it possible to programmatically get the current __instance__ of the
> configured ResourceLoader?
>
> Thanks
> -Iwan Vosloo
>
> Powered by Tiscali - http://www.tiscali.co.za
>
>
>
>
--------------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org