io.crossbar.autobahn.wamp.reflectionRoles.MethodInvocationHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autobahn-java Show documentation
Show all versions of autobahn-java Show documentation
WebSocket & WAMP for Java8+
The newest version!
package io.crossbar.autobahn.wamp.reflectionRoles;
import io.crossbar.autobahn.wamp.interfaces.IInvocationHandler;
import io.crossbar.autobahn.wamp.interfaces.ISerializer;
import io.crossbar.autobahn.wamp.types.InvocationDetails;
import io.crossbar.autobahn.wamp.types.InvocationResult;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
public class MethodInvocationHandler implements IInvocationHandler {
private final Object mInstance;
private final ArgumentUnpacker mUnpacker;
private final ISerializer mSerializer;
private final Method mMethod;
public MethodInvocationHandler(Object instance, Method method, ISerializer serializer) {
this.mInstance = instance;
this.mMethod = method;
this.mUnpacker = new ArgumentUnpacker(method);
this.mSerializer = serializer;
}
@Override
public InvocationResult apply(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy