I separated the DispatchContext into two interfaces = AttributeDispatchContext and
InvokeDispatchContext:
| public interface AttributeDispatchContext
| {
| /**
| * Getter property / attribute
| *
| * @param name
| * @return target's property / attribute instance
| * @throws Throwable
| */
| Object get(String name) throws Throwable;
|
| /**
| * Setter property / attribute
| *
| * @param name
| * @param value set target's property / attribute instance
| * @throws Throwable
| */
| void set(String name, Object value) throws Throwable;
| }
|
| public interface InvokeDispatchContext extends AttributeDispatchContext
| {
| /**
| * Invoke method / operation
| *
| * @param name
| * @param parameters
| * @param signature
| * @return inovocation's return object
| * @throws Throwable
| */
| Object invoke(String name, Object parameters[], String[] signature) throws
Throwable;
|
| /**
| * Get any target
| *
| * @return the target
| */
| Object getTarget();
|
| /**
| * Get context's classloader.
| * Used when determining type info for parameter and
| * getting the parameter actual value.
| *
| * @return context's classloader
| * @throws Throwable
| */
| ClassLoader getClassLoader() throws Throwable;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002917#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...