[jbpm-dev] [Design of JBoss jBPM] - Re: statefull vs stateless delegation classes

cvl do-not-reply at jboss.com
Thu Feb 19 14:49:46 EST 2009


This sounds somewhat like deciding for the user how to use the system.

Why not add some flexibility - e.g. as with spring, you could point out the scope of the handler (like singleton).

Pool is good for non singleton handlers (like jsf works).


About the state in the action handler - we use that to autowire spring dependencies (@Autowire annotation)
For now we are using only singleton scope, so that's not a problem (if you don't reload spring container), but what if you want to add some custom scope, let's say @ProcessInstance.

Anyways, it's just an example, the idea is, why add some restrictions, where flexibility is wanted.

I'm for configurable option, and not globally of course, but for each handler (with sensible default).

cvl

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211621#4211621

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211621



More information about the jbpm-dev mailing list