> public interface Service {
>     public void init(ServiceContext context) throws Exception;
>     public void start() throws Exception;
>     public void stop() throws Exception;
>     public void destroy() throws Exception;
> }
> 

Allways pressing the send button (actually, the 'y' letter in mutt)
too early. I've listed Avalon and CSF just because of the marker
interfaces. If you define a "Service" interface straight, you
hijack the the concept of service this way, which can be unsatisfactory
for other software componewnts that smell to be service, too.

If you use marker interfaces, then you can implement exactly that
functionality for your services what you want. In the HP CSF they
define the AbstractService abstract class to implement the minimal
service functionality, and real services may extend that.

incze

Reply via email to