Dynamic stage creation

Jean Morissette <[email protected]> Wed, 02 Feb 2005 17:19:00 -0500
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
Actually, SS provide a method to create stage dynamically:

ManagetIF.createStage(String stagename, EventHandlerIF handlerInstance, 
String initargs[]) throws Exception;

Now suppose that a dynamically created stage is reprogramed 
(deprogram/program), this means that the handler will be recreated (with 
Class.forName().newInstance()).  So the new handler will not be the same 
instance that the given handler.  Thus, I think that it's better to pass 
the handler class instead of a handler instance, so we would have:

ManagetIF.createStage(String stagename, String handlerClassName, String 
initargs[]) throws Exception;

Any objection?



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl