Search in sources :

Example 1 with HandlerMethodMetaInfo

use of act.controller.meta.HandlerMethodMetaInfo in project actframework by actframework.

the class ControllerEnhancer method visitMethod.

@Override
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
    MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
    HandlerMethodMetaInfo info = methodInfo(name);
    if (null == info) {
        return mv;
    }
    logger.debug(">>>About to enhance handler: %s", name);
    return new HandlerEnhancer(mv, info, access, name, desc, signature, exceptions);
}
Also used : HandlerMethodMetaInfo(act.controller.meta.HandlerMethodMetaInfo) MethodVisitor(act.asm.MethodVisitor)

Aggregations

MethodVisitor (act.asm.MethodVisitor)1 HandlerMethodMetaInfo (act.controller.meta.HandlerMethodMetaInfo)1