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

net.vidageek.mirror.invoke.dsl.MethodHandler Maven / Gradle / Ivy

package net.vidageek.mirror.invoke.dsl;

/**
 * Interface for classes responsible for invoking methods.
 * 
 * @author jonasabreu
 */
public interface MethodHandler {

    /**
     * Invoke a method without arguments.
     * 
     * @return The value returned by the method or null if the method was void.
     */
    public Object withoutArgs();

    /**
     * Invoke a method using arguments args.
     * 
     * @param args
     *            arguments to be used to invoke method.
     * @return The value returned by the method or null if the method was void.
     */
    public Object withArgs(final Object... args);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy