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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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. [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
