You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Diethelm Guallar, Gonzalo" <Go...@sonda.com> on 2001/07/19 02:16:10 UTC

Service init()

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?


-- 
Gonzalo A. Diethelm
gonzalo.diethelm@sonda.com

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


Re: Service init()

Posted by Jason van Zyl <jv...@apache.org>.
On 7/18/01 8:16 PM, "Diethelm Guallar, Gonzalo" <Go...@sonda.com>
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org