Top Description Methods
com.sun.faces.application.annotation

pack-priv Interface Scanner

Known Direct Implementers
com.sun.faces.application.annotation.WebServiceRefScanner, com.sun.faces.application.annotation.DelegatedEJBScanner, com.sun.faces.application.annotation.DelegatedPersistenceContextScanner, com.sun.faces.application.annotation.DelegatedPersistenceUnitScanner, com.sun.faces.application.annotation.DelegatedResourceScanner, com.sun.faces.application.annotation.DelegatedWebServiceRefScanner, com.sun.faces.application.annotation.EJBScanner, com.sun.faces.application.annotation.ListenerForScanner, com.sun.faces.application.annotation.PersistenceContextScanner, com.sun.faces.application.annotation.PersistenceUnitScanner, com.sun.faces.application.annotation.ResourceDependencyScanner, com.sun.faces.application.annotation.ResourceScanner
Imports
java.lang.annotation.Annotation

Instances of this interface are responsible for scanning a Class for a specific annotation types.

Scanner implementations must be thread safe.

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Annotation>

Returns:

the java.lang.annotation.Annotation this Scanner is responsible for handling

Note

while a particular Scanner instance may handle a plural version of an Annotation in additional to a singular, this method must return the singular version only.

getAnnotation
()

public RuntimeAnnotationHandler

Returns:

a new RuntimeAnnotationHandler instance capable of processing the annotations defined on this class. If no relevant java.lang.annotation.Annotations are found, return null.
scan
(Class<?>
the target class
clazz
)

Scan the target class for the java.lang.annotation.Annotations this scanner handles.

Method Detail

getAnnotationback to summary
public Class<? extends Annotation> getAnnotation()
Returns:Class<? extends Annotation>

the java.lang.annotation.Annotation this Scanner is responsible for handling

Note

while a particular Scanner instance may handle a plural version of an Annotation in additional to a singular, this method must return the singular version only.

scanback to summary
public RuntimeAnnotationHandler scan(Class<?> clazz)

Scan the target class for the java.lang.annotation.Annotations this scanner handles.

Parameters
clazz:Class<?>

the target class

Returns:RuntimeAnnotationHandler

a new RuntimeAnnotationHandler instance capable of processing the annotations defined on this class. If no relevant java.lang.annotation.Annotations are found, return null.