1 25 26 package org.objectweb.easybeans.deployment.annotations.analyzer.classes; 27 28 import javax.ejb.ApplicationException ; 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.JApplicationException; 33 import org.objectweb.easybeans.deployment.annotations.metadata.ClassAnnotationMetadata; 34 35 39 public class JavaxEjbApplicationExceptionVisitor extends ObjectAnnotationVisitor<ClassAnnotationMetadata, Boolean > implements 40 AnnotationType { 41 42 45 public static final String TYPE = "Ljavax/ejb/ApplicationException;"; 46 47 51 public JavaxEjbApplicationExceptionVisitor(final ClassAnnotationMetadata classAnnotationMetadata) { 52 super(classAnnotationMetadata); 53 } 54 55 58 @Override 59 public void visitEnd() { 60 Boolean b = getValue(); 61 62 ApplicationException jApplicationException; 63 if (b == null) { 65 jApplicationException = new JApplicationException(); 66 } else { 67 jApplicationException = new JApplicationException(b.booleanValue()); 68 } 69 70 getAnnotationMetadata().setApplicationException(jApplicationException); 71 72 } 73 74 77 public String getType() { 78 return TYPE; 79 } 80 81 } 82 | Popular Tags |