use of act.mail.meta.SenderMethodMetaInfo in project actframework by actframework.
the class MailerEnhancer 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);
SenderMethodMetaInfo info = methodInfo(name, access);
if (null == info) {
return mv;
}
logger.debug(">>>About to enhance mailer method: %s", name);
return new SenderEnhancer(mv, info, access, name, desc, signature, exceptions);
}
use of act.mail.meta.SenderMethodMetaInfo in project actframework by actframework.
the class MailerEnhancer method methodInfo.
private SenderMethodMetaInfo methodInfo(String name, int access) {
if (isPublic(access) && !isConstructor(name)) {
MailerClassMetaInfo ccInfo = classInfoHolder.mailerClassMetaInfo(className);
if (null == ccInfo) {
return null;
}
SenderMethodMetaInfo info = ccInfo.sender(name);
if (null != info) {
return info;
}
return ccInfo.sender(name);
} else {
return null;
}
}
Aggregations