tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Incze Lajos <>
Subject Re: cvs commit: jakarta-tomcat-service/java/org/apache/service
Date Wed, 01 Aug 2001 19:42:48 GMT

> 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.


View raw message