[jboss-dev-forums] [Design of POJO Server] - Re: bean/mbean integration issue

alesj do-not-reply at jboss.com
Wed Jan 17 11:47:45 EST 2007


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#4002917

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



More information about the jboss-dev-forums mailing list