Re: Requirements for implementing Cocoon Blocks

Paul Hammant <[email protected]> Tue, 07 Jan 2003 07:50:30 +0000
Newsgroups gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.devel
Message-ID <[email protected]>
Nicola, 

>> Some separation of Cocoon kernel services from Cocoon using webapps 
>> with (I'm guessing) the need for some Avalon lifecycle interfaces to 
>> be honored for this type of Cocoon deployment. Particularly 
>> ServiceManager.
>
>
> Sorry Paul, I don't get this. Too concise ;-)
> Could you please expand? Thanks. 

I love code examples :

   CocoonKernelUsingCocoonServlet  extends HttpServlet, implements 
Serviceable, Startable  { 
        public void doGet( // blah ) { // blah }
        public void service( ServiceManager sm) { // blah }
        public void start() { // blah }
        public void stop() { // blah }
   }

I.e. the Servlet container also (non servlet spec) provides Avalon 
lifecycle to servlet (if implemented as ever).

- Paul