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

io.sterodium.rmi.protocol.MethodInvocationDto Maven / Gradle / Ivy

package io.sterodium.rmi.protocol;

/**
 * @author Mihails Volkovs [email protected]
 *         Date: 23/09/2015
 */
public class MethodInvocationDto {

    private final String method;

    private final String[] arguments;

    private final String[] argumentClasses;

    /**
     * Represents information required to invoke method on the object remotely
     *
     * @param method          method name {@link java.lang.reflect.Method#getName()}
     * @param argumentClasses ordered array of method argument classes
     * @param arguments       ordered values for method arguments
     */
    public MethodInvocationDto(String method, String[] argumentClasses, String[] arguments) {
        this.method = method;
        this.argumentClasses = argumentClasses;
        this.arguments = arguments;
    }

    public String getMethod() {
        return method;
    }

    public String[] getArgumentClasses() {
        return argumentClasses;
    }

    public String[] getArguments() {
        return arguments;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy