Remy Maucherat at [EMAIL PROTECTED] wrote:
>
>> * I like symmetry :-), so shouldn't there also be some sort of
>>   shutdown() method that is called after stop() that corresponds to
>>   initialize() being called before start()?
> 
> Ok, but it wouldn't be that useful.

I don't know... If Service looked somehow like:

public interface Service() {
    public void init(...) throws ...;
    public void start() throws ...;
    public void stop() throws ...;
    public void destroy() throws ...;
}

We could allow the service to be started and stopped several times during
the life span of the JVM process, as Win32 does with pause and continue in
their Service stuff...

    Pier

Reply via email to