David Warnock wrote:
> 
> Brett,
> 
> >   public void init(Object ob);
> >
> >   public Object get();
> >
> >   public boolean execute() throws ServiceException;
> 
> Just a couple of thoughts
> 
> Could we add
> 
> public boolean execute(Object ob) throws ServiceException;

-1.  You can achieve this same thing with init(Object ob) and then
execute().  I don't want to have to know which is the appropriate
execute() method to call depending on the service type.  That means I
can't dynamically load/run services, because I have to figure out the
type to see which execute() needs to be run; the one with the parameter
or the one without.  As long as you always all init(), and always call
execute(), yoiu're all set.

-Brett

> 
> I think this would make it easier for services that are built as
> singletons (ie a servlet type model, with one object and multiple
> threads).
> 
> If this is added then I guess it would be sensible to add the same for
> get(Object ob)
> 
> Dave
> 
> ------------------------------------------------------------
> 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