io.crossbar.autobahn.wamp.reflectionRoles.MethodEventHandler 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.ISerializer;
import io.crossbar.autobahn.wamp.interfaces.TriConsumer;
import io.crossbar.autobahn.wamp.types.EventDetails;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
public class MethodEventHandler implements TriConsumer, Map, EventDetails> {
private final Object mInstance;
private final ArgumentUnpacker mUnpacker;
private final ISerializer mSerializer;
private final Method mMethod;
public MethodEventHandler(Object instance, Method method, ISerializer serializer) {
this.mInstance = instance;
this.mMethod = method;
this.mUnpacker = new ArgumentUnpacker(method);
this.mSerializer = serializer;
}
@Override
public void accept(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy