All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.blocks.MethodInvoker Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 33.0.2.Final
Show newest version
package org.jgroups.blocks;

/**
 * Can be used by {@link RpcDispatcher} / {@link MethodCall} to invoke a method against a given target object
 * @author Bela Ban
 * @since  4.1.0
 */
public interface MethodInvoker {

    /**
     * An implementation invokes a method associated with a given ID and the given args against a target object
     * @param target The object against which to invoke the method
     * @param method_id The ID of the method. The implementation must assign unique IDs and associate them somehow
     *                  with a method to invoke
     * @param args The arguments of the invocation
     * @return The result. It may be null if a method returns void
     * @throws Exception Thrown if the invocation threw an exception. The real exception may be wrapped in an
     * {@link java.lang.reflect.InvocationTargetException}.
     */
    Object invoke(Object target, short method_id, Object[] args) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy