velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: [tools-2.0] How to create HTTP-request-based application-wide tool
Date Wed, 25 Feb 2009 17:31:07 GMT
2009/2/25 Nathan Bubna <nbubna@gmail.com>:
> On Wed, Feb 25, 2009 at 9:23 AM, Antonio Petrelli
> <antonio.petrelli@gmail.com> wrote:
>> 2009/2/25 Antonio Petrelli <antonio.petrelli@gmail.com>:
>>> In case of an application-scoped tool, are these methods being called?
>>
>> Answer: only once, at creation.
>> That's odd, it's an unintended feature?
>
> Sort of.  It is very much intended that application tools are only
> configured once.  To simplify the configuration process, all tools are
> provided the current context upon configuration, regardless of scope.
> This, of course, means that application scoped tools get one shot at
> request scoped objects, if they want.  Generally, they don't want it
> and should just ignore those config parameters.

You've been very kind and clear, thanks :-)

Antonio

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


Mime
View raw message