01: package com.bm.ejb3metadata.annotations.analyzer.method;
02:
03: import com.bm.ejb3metadata.annotations.analyzer.AnnotationType;
04: import com.bm.ejb3metadata.annotations.analyzer.ObjectArrayAnnotationVisitor;
05: import com.bm.ejb3metadata.annotations.metadata.MethodAnnotationMetadata;
06:
07: /**
08: * This class manages the handling of @{@link javax.ejb.Init} annotation.
09: * @author Daniel Wiese
10: */
11: public class JavaxEjbInitVisitor extends
12: ObjectArrayAnnotationVisitor<MethodAnnotationMetadata, String>
13: implements AnnotationType {
14:
15: /**
16: * Type of annotation.
17: */
18: public static final String TYPE = "Ljavax/ejb/Init;";
19:
20: /**
21: * Constructor.
22: * @param methodAnnotationMetadata linked to a method metadata
23: */
24: public JavaxEjbInitVisitor(
25: final MethodAnnotationMetadata methodAnnotationMetadata) {
26: super (methodAnnotationMetadata);
27: }
28:
29: /**
30: * Visits the end of the annotation.<br>
31: * Creates the object and store it.
32: */
33: @Override
34: public void visitEnd() {
35: //TODO: Implements Init !
36: //getMethodAnnotationMetadata().setXXX
37:
38: }
39:
40: /**
41: * @return type of the annotation (its description).
42: */
43: public String getType() {
44: return TYPE;
45: }
46:
47: }
|