io.github.lab515.utils.Interceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qray Show documentation
Show all versions of qray Show documentation
remoting ondemand in java
package io.github.lab515.utils;
/**
* the mode and behaviors is depends on return flags from preCall and postCall
*/
public interface Interceptor {
int C_OVERWRITE = 1, C_STOP = 2, C_SKIP = 4; // precall overwrite
// before the call
boolean filterCall(Calling cl);
// beginignig of call
int preCall(Calling cl);
// after call body
int postCall(Calling cl);
boolean withClass(String clsName);
int withMethod(String clsName, String method, String desc, String annos);
}