org.asmatron.messengine.engines.support.RequestMethodHandler Maven / Gradle / Ivy
package org.asmatron.messengine.engines.support;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.asmatron.messengine.action.ActionHandler;
import org.asmatron.messengine.action.RequestAction;
import org.asmatron.messengine.util.MethodInvoker;
public class RequestMethodHandler extends MethodInvoker implements ActionHandler> {
private final static Logger log = Logger.getLogger(RequestMethodHandler.class.getName());
public RequestMethodHandler(Object object, Method method) {
super(object, method);
if (method.getParameterTypes().length > 1) {
throw new IllegalMethodException("Illegal Engine binding on: " + object.getClass().getName() + "."
+ method.getName());
}
}
@Override
public void handle(RequestAction
© 2015 - 2025 Weber Informatics LLC | Privacy Policy