Okay, no help so far, so let me try another question.  What is the purpose
of init(Object)?  Since it seems you are supposed to call it prior to
execute(), does it do something everytime it is called?  Does the service
init after it is first instantiated and any further calls to init(Object)
are ignored?  Or is it expected that any object calling init(Object) will
reinitialize the service?  Does a service that allows many calls to init()
need to track the calling object, so that it can be in the right state when
execute() is called?  This seems overly complex.

Why don't objects call a method execute(Object), if the service is not
initialized it does so before performing the execute?

John McNally

----- Original Message -----
From: John McNally <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Thursday, February 10, 2000 5:15 PM
Subject: Services


> I am having some trouble understanding the Service interface, so I am
going
> to ask what is probably a dumb question, in the hope that responses will
> enlighten me.
>
> Services contain  init(Object) and execute() methods.  Let's say two
objects
> request the same service.  And call its methods in the following order:
>
> ObjectA calls init(ObjectA)
> ObjectB calls init(ObjectB)
> ObjectA calls execute()
> ObjectB calls execute()
>
> Will not the service execute wrongly for one of the objects???
>
> John McNally
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to