com.sun.enterprise.deployment.annotation.introspection
Class DefaultAnnotationScanner

java.lang.Object
  extended by com.sun.enterprise.deployment.annotation.introspection.DefaultAnnotationScanner
All Implemented Interfaces:
AnnotationScanner, org.jvnet.hk2.component.PostConstruct

@Service(name="default")
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class DefaultAnnotationScanner
extends java.lang.Object
implements AnnotationScanner, org.jvnet.hk2.component.PostConstruct

This class contains the list of all annotations types name which can be present at the class level (Type.TYPE).

Author:
Jerome Dochez

Constructor Summary
DefaultAnnotationScanner()
           
 
Method Summary
 java.util.Set<java.lang.String> getAnnotations()
          Returns a list of FQCN of annotations we are interested in.
 boolean isAnnotation(java.lang.String value)
          Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component
 void postConstruct()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationScanner

public DefaultAnnotationScanner()
Method Detail

isAnnotation

public boolean isAnnotation(java.lang.String value)
Test if the passed constant pool string is a reference to a Type.TYPE annotation of a J2EE component

Specified by:
isAnnotation in interface AnnotationScanner
Returns:
true if it is a J2EE annotation reference

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

getAnnotations

public java.util.Set<java.lang.String> getAnnotations()
Description copied from interface: AnnotationScanner
Returns a list of FQCN of annotations we are interested in.

Specified by:
getAnnotations in interface AnnotationScanner
Returns:
a list of fully qualified class name list of annotations.


Copyright © 2012 GlassFish Community. All Rights Reserved.