On 7/18/01 8:16 PM, "Diethelm Guallar, Gonzalo" <[EMAIL PROTECTED]>
wrote:
> I just took a look at several (about 20) of the services
> in Turbine 2.1, thinking I would find a single way of
> implementing service initialization. However, I found
> some services have an init(ServletConfig) method, others
> have init(RunData), other have init(), etc.
>
> What is exactly the blessed way to implement the
> initialization (and termination) methods for a new service?
> Will this change for 3.0?
>
Already changed in 3.0, there is only init() in 3.0. Services
in 3.0 are no longer coupled to ServletConfig or RunData. To
start a service early you do the following:
services.XService.earlyInit = true
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]