[jboss-dev-forums] [Design of JBoss jBPM] - Command facade API

heiko.braun@jboss.com do-not-reply at jboss.com
Thu Jan 31 03:21:59 EST 2008


Something that's really hard to deal with is the untyped CommandService
interface. It's not obvious what gets returned, there's a lot of casting
involved and sometimes the result is ambiguous.

Bernd, what do you think about a typed interface opposed to 
'public Object execute(Command command)' ?
Could you picture a more fine grained interface? I think it would make
it much easier to read and understand. Furthermore it would help to
distinguish different API versions of the command facade, when JBPM
evolves. You know we could deprecate and extend much easier.

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

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



More information about the jboss-dev-forums mailing list