You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Nathan Bubna <nb...@gmail.com> on 2010/03/26 18:50:00 UTC
Re: 1.5 get at RuntimeServices
There isn't really a proper way. Your plan sounds reasonable.
On Tue, Feb 2, 2010 at 6:59 AM, Jason Tesser <ja...@gmail.com> wrote:
> I am modifying 1.5 Velocity code to allow me to serialize templates.
>
> What is the proper way to get at the runtimeservices? They are private on
> the VelocityEngine. In our app that is a singleton. I can make the
> RuntimeServices transient and then get the VelocityEngine to get at it
> assuming I expose it with a getter. Is there a better way? I know this is
> hacky which is why I am asking?
>
> Thanks,
> Jason Tesser
> dotCMS Lead Development Manager
> 1-305-858-1422
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: 1.5 get at RuntimeServices
Posted by Jason Tesser <ja...@gmail.com>.
Yea for what it is worth I ended getting this working in Both 1.6.3 and
1.5.
I modified Velocity so all the Velocity Object/Templates are Serializable.
Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422
On Fri, Mar 26, 2010 at 1:50 PM, Nathan Bubna <nb...@gmail.com> wrote:
> There isn't really a proper way. Your plan sounds reasonable.
>
> On Tue, Feb 2, 2010 at 6:59 AM, Jason Tesser <ja...@gmail.com>
> wrote:
> > I am modifying 1.5 Velocity code to allow me to serialize templates.
> >
> > What is the proper way to get at the runtimeservices? They are private
> on
> > the VelocityEngine. In our app that is a singleton. I can make the
> > RuntimeServices transient and then get the VelocityEngine to get at it
> > assuming I expose it with a getter. Is there a better way? I know this
> is
> > hacky which is why I am asking?
> >
> > Thanks,
> > Jason Tesser
> > dotCMS Lead Development Manager
> > 1-305-858-1422
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>