Stage Lifecycle

Jean Morissette <[email protected]> Wed, 22 Dec 2004 12:31:42 -0500
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
Like Quartz have suggested, we could have 3 lifecycle levels: 
[load[init[start/stop]destroy]unload].  To achieve that, I would like to 
augment the StageWrapperIF API:

interface StageWrapperIF {

   static final int NULL_STATE = 0;
   static final int LOADED_STATE = 1;
   static final int INITIALIZED_STATE = 2;
   static final int STARTED_STATE = 3;

   int getState();

   void load(EventHandlerIF handler, ConfigDataIF config, 
ThreadManagerIF threadmgr, int queueThreshold) throws Exception;

   void unload() throws Exception;

   void init() throws Exception;

   void destroy() throws Exception;

   void start() throws Exception;

   void stop() throws Exception;

   [...]
}

Objection?  Better idea?



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/