"alesj" wrote : I've added the following code to KernelBus:
Why did you go to all this extra work of creating joinpoints and all the other rubbish?
All that was required was to extend the dispatch api to have the name of the target
and add that to the kernel bus api.
e.g.
| /**
| * Invoke method / operation
| *
| * @param name the name of the target
| * @param methodName method name
| * @param parameters parameter values
| * @param signature method's parameter types / signatures
| * @return invocation's return object
| * @throws Throwable for any error
| */
| Object invoke(Object name, String methodName, Object parameters[], String[]
signature) throws Throwable;
|
A bus is just the same api as a single context with the target found by looking up
the name in a registry. The name being the extra parameter.
The rest of the api you've created, is just useless object construction and
irrelevant
implement details.
NOTE: Even the joinpoint stuff in the existing KernelBus is irrelevant.
It is legacy from when I was experimenting with AOP/POJO and JMX implementing the
Joinpoint api. The DispatchContext replaced this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087183#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...