1 25 26 package org.objectweb.easybeans.deployment.annotations.helper.bean.mdb; 27 28 import static org.objectweb.asm.Opcodes.ACC_PUBLIC; 29 30 import org.objectweb.easybeans.deployment.annotations.JMethod; 31 import org.objectweb.easybeans.deployment.annotations.metadata.ClassAnnotationMetadata; 32 import org.objectweb.easybeans.deployment.annotations.metadata.MethodAnnotationMetadata; 33 34 39 public final class MDBListenerBusinessMethodResolver { 40 41 44 private static final JMethod ONMESSAGE_METHOD = new JMethod(ACC_PUBLIC, "onMessage", "(Ljavax/jms/Message;)V", null, null); 45 46 49 private MDBListenerBusinessMethodResolver() { 50 } 51 52 56 public static void resolve(final ClassAnnotationMetadata sessionBean) { 57 59 MethodAnnotationMetadata onMessageMethod = sessionBean.getMethodAnnotationMetadata(ONMESSAGE_METHOD); 61 if (onMessageMethod != null) { 62 onMessageMethod.setBusinessMethod(true); 63 } 64 65 } 66 } 67 | Popular Tags |