velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: IoC velocity?
Date Thu, 12 Jun 2008 23:56:49 GMT
Yeah, if we were to make RuntimeInstance or VelocityEngine do this, it
would be in 2.0.  Though, perhaps an IoC assembler could be built
around the existing APIs, hiding them.  Spring may already be doing
this to integrate Velocity, though i haven't looked at that lately.

On Thu, Jun 12, 2008 at 4:19 PM, Malcolm Edgar <malcolm.edgar@gmail.com> wrote:
> Hi,
>
> I do recall Henning talking about if they did Velocity 2, much of the
> configuration could be replaced with an IoC container, Spring etc.
> However, I am not sure whether people have enough time to do a
> Velocity 2.x
>
> regards Malcolm Edgar
>
> On Fri, Jun 13, 2008 at 5:56 AM, Serge Knystautas <sknystautas@gmail.com> wrote:
>> Has anyone looked into or done anything with a variant of Velocity
>> that uses IoC pattern to initiatize itself?  I started down my latest
>> Velocity customization path wanting to add some custom fields to a
>> Template using a child class.  I already have my custom
>> resource.loader (2 of them actually), custom parser pool, custom
>> logger... I can see that I could implement my own custom
>> ResourceManager (and thus ResourceFactory) to be able to return a
>> child Template, but I'm just feeling dirty at this point.  Also all of
>> my custom implementations are instantiated with new MyCustomFooImpl()
>> rather than being able to hand Velocity an impl with whatever
>> dependencies I need.
>>
>> Any thoughts?
>>
>> --
>> Serge Knystautas
>> Lokitech >> software . strategy . design >> http://www.lokitech.com
>> p. 301.656.5501
>> e. sergek@lokitech.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: dev-help@velocity.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>

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


Mime
View raw message