1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer.method; 27 28 import javax.ejb.Remove ; 29 30 import org.objectweb.easybeans.deployment.annotations.analyzer.AnnotationType; 31 import org.objectweb.easybeans.deployment.annotations.analyzer.ObjectAnnotationVisitor; 32 import org.objectweb.easybeans.deployment.annotations.impl.JRemove; 33 import org.objectweb.easybeans.deployment.annotations.metadata.MethodAnnotationMetadata; 34 35 39 public class JavaxEjbRemoveVisitor extends ObjectAnnotationVisitor<MethodAnnotationMetadata, Boolean > implements AnnotationType { 40 41 44 public static final String TYPE = "Ljavax/ejb/Remove;"; 45 46 50 public JavaxEjbRemoveVisitor(final MethodAnnotationMetadata methodAnnotationMetadata) { 51 super(methodAnnotationMetadata); 52 } 53 54 58 @Override 59 public void visitEnd() { 60 Boolean b = getValue(); 61 62 Remove jRemove; 63 if (b == null) { 65 jRemove = new JRemove(); 66 } else { 67 jRemove = new JRemove(b.booleanValue()); 68 } 69 70 getAnnotationMetadata().setRemove(jRemove); 71 72 } 73 74 77 public String getType() { 78 return TYPE; 79 } 80 81 } 82 | Popular Tags |