io.higgs.events.EventMethod Maven / Gradle / Ivy
package io.higgs.events;
import io.higgs.core.InvokableMethod;
import io.higgs.core.ObjectFactory;
import io.netty.channel.ChannelHandlerContext;
import java.lang.reflect.Method;
import java.util.Queue;
/**
* @author Courtney Robinson
*/
public class EventMethod extends InvokableMethod {
public EventMethod(Queue factories, Class> klass, Method classMethod) {
super(factories, klass, classMethod);
}
public void registered() {
log.info(String.format("REGISTERED > %1$-20s | %2$-30s | %3$-50s", classMethod.getName(),
path(), classMethod.getReturnType().getName()));
}
@Override
public boolean matches(String path, ChannelHandlerContext ctx, Object msg) {
return path().matches(path);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy