| Modifier and Type | Class and Description |
|---|---|
| private static class | AnnotationManager.ProcessAnnotationsTask
This |
| private static enum | AnnotationManager.ProcessingTarget
Enum of the different processing targets and their associated
|
| Modifier and Type | Field and Description |
|---|---|
| private static final Scanner[] | |
| private ConcurrentMap | cache
The backing cache for all annotation metadata. |
| private static final Scanner[] | CLIENT_BEHAVIOR_RENDERER_SCANNERS
|
| private static final Scanner[] | |
| private static final Scanner[] | |
| private static final Scanner | |
| private static final Logger | |
| private static final Scanner[] | |
| private static final Scanner | |
| private static final Scanner[] | UICOMPONENT_SCANNERS
|
| private static final Scanner[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | applyAnnotations(FacesContext
the ctx, Class<?> javax.faces.context.FacesContext for the current requestclass of the targetClass, AnnotationManager.processingTargetthe type of component that is being processed processingTarget,one or more parameters to be passed to each params)RuntimeAnnotationHandlerApply all annotations associated with |
| public void | applyBehaviorAnnotations(FacesContext
the ctx, Behavior javax.faces.context.FacesContext for the current requestthe target b)Behavior to processApply annotations relevant to |
| public void | applyClientBehaviorRendererAnnotations(FacesContext
the ctx, ClientBehaviorRenderer javax.faces.context.FacesContext for the current requestthe target b)ClientBehaviorRenderer to processApply annotations relevant to |
| public void | applyComponentAnnotations(FacesContext
the ctx, UIComponent javax.faces.context.FacesContext for the current requestthe target c)UIComponent to processApply annotations relevant to |
| public void | applyConfigAnnotations(FacesContext
FacesContext available during application initialization ctx, Class<? extends Annotation> annotationType, Set<? extends Class<T>> Collection of class names known
to contain one or more Faces configuration annotations
Apply the configuration metadata contained with in the |
| public void | applyConverterAnnotations(FacesContext
the ctx, Converter<T> javax.faces.context.FacesContext for the current requestthe target c)Converter to processApply annotations relevant to |
| public void | applyRendererAnnotations(FacesContext
the ctx, Renderer javax.faces.context.FacesContext for the current requestthe r, UIComponent Renderer to processthe c)UIComponent instances that is associated with this
RendererApply annotations relevent to |
| public void | |
| public void | applyValidatorAnnotations(FacesContext
the ctx, Validator<T> javax.faces.context.FacesContext for the current requestthe target v)Validator to processApply annotations relevant to |
| private Map | Returns: a newMap which maps the types of annotations to
a specific ConfigAnnotationHandler. Note that each invocation
of this method constructs a new Map with new
ConfigAnnotationhandler instances as they are not thread
safe.
|
| private Map | Returns: a Map keyed by Annotation class with an AnnotationHandler as the valueclass of the targetClass, AnnotationManager.processingTargetthe type of component being processed processingTargetHelper method to look up cached annotation metadata. |
| BEHAVIOR_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] BEHAVIOR_SCANNERS | |
| cache | back to summary |
|---|---|
| private ConcurrentMap<Class<?>, Future<Map<Class<? extends Annotation>, RuntimeAnnotationHandler>>> cache The backing cache for all annotation metadata. | |
| CLIENT_BEHAVIOR_RENDERER_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] CLIENT_BEHAVIOR_RENDERER_SCANNERS
| |
| CONVERTER_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] CONVERTER_SCANNERS | |
| EVENTS_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] EVENTS_SCANNERS | |
| LISTENER_FOR_SCANNER | back to summary |
|---|---|
| private static final Scanner LISTENER_FOR_SCANNER | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| RENDERER_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] RENDERER_SCANNERS | |
| RESOURCE_DEPENDENCY_SCANNER | back to summary |
|---|---|
| private static final Scanner RESOURCE_DEPENDENCY_SCANNER | |
| UICOMPONENT_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] UICOMPONENT_SCANNERS
| |
| VALIDATOR_SCANNERS | back to summary |
|---|---|
| private static final Scanner[] VALIDATOR_SCANNERS | |
| AnnotationManager | back to summary |
|---|---|
| public AnnotationManager() Construct a new AnnotationManager instance. | |
| applyAnnotations | back to summary |
|---|---|
| private void applyAnnotations(FacesContext ctx, Class<?> targetClass, AnnotationManager. Apply all annotations associated with
| |
| applyBehaviorAnnotations | back to summary |
|---|---|
| public void applyBehaviorAnnotations(FacesContext ctx, Behavior b) Apply annotations relevant to
| |
| applyClientBehaviorRendererAnnotations | back to summary |
|---|---|
| public void applyClientBehaviorRendererAnnotations(FacesContext ctx, ClientBehaviorRenderer b) Apply annotations relevant to
| |
| applyComponentAnnotations | back to summary |
|---|---|
| public void applyComponentAnnotations(FacesContext ctx, UIComponent c) Apply annotations relevant to
| |
| applyConfigAnnotations | back to summary |
|---|---|
| public void applyConfigAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType, Set<? extends Class<T>> annotatedClasses)
Apply the configuration metadata contained with in the
| |
| applyConverterAnnotations | back to summary |
|---|---|
| public void applyConverterAnnotations(FacesContext ctx, Converter<T> c) Apply annotations relevant to
| |
| applyRendererAnnotations | back to summary |
|---|---|
| public void applyRendererAnnotations(FacesContext ctx, Renderer r, UIComponent c) Apply annotations relevent to
| |
| applySystemEventAnnotations | back to summary |
|---|---|
| public void applySystemEventAnnotations(FacesContext ctx, SystemEvent e) | |
| applyValidatorAnnotations | back to summary |
|---|---|
| public void applyValidatorAnnotations(FacesContext ctx, Validator<T> v) Apply annotations relevant to
| |
| getConfigAnnotationHandlers | back to summary |
|---|---|
private Map
| |
| getHandlerMap | back to summary |
|---|---|
| private Map Helper method to look up cached annotation metadata.
| |
Callable will leverage the provided Scanners
to build a mapping between a particular annotation type and an
AnnotationHandler for that type.
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private static final Map | |
| private Scanner[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | call()
Implements java. |
| clazz | back to summary |
|---|---|
| private Class<?> clazz | |
| EMPTY | back to summary |
|---|---|
private static final Map<Class<? extends Annotation>, RuntimeAnnotationHandler> EMPTY
| |
| scanners | back to summary |
|---|---|
| private Scanner[] scanners | |
| ProcessAnnotationsTask | back to summary |
|---|---|
| public ProcessAnnotationsTask(Class<?> clazz, Scanner[] scanners) | |
| call | back to summary |
|---|---|
| public Map Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
Scanners
| Modifier and Type | Field and Description |
|---|---|
| public static final AnnotationManager. | |
| public static final AnnotationManager. | |
| public static final AnnotationManager. | |
| public static final AnnotationManager. | |
| private Scanner[] | |
| public static final AnnotationManager. | |
| public static final AnnotationManager. | |
| public static final AnnotationManager. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AnnotationManager. | |
| public static AnnotationManager. |
| Behavior | back to summary |
|---|---|
| public static final AnnotationManager. | |
| ClientBehaviorRenderer | back to summary |
|---|---|
| public static final AnnotationManager. | |
| Converter | back to summary |
|---|---|
| public static final AnnotationManager. | |
| Renderer | back to summary |
|---|---|
| public static final AnnotationManager. | |
| scanners | back to summary |
|---|---|
private Scanner[] scanners
| |
| SystemEvent | back to summary |
|---|---|
| public static final AnnotationManager. | |
| UIComponent | back to summary |
|---|---|
| public static final AnnotationManager. | |
| Validator | back to summary |
|---|---|
| public static final AnnotationManager. | |
| ProcessingTarget | back to summary |
|---|---|
| private ProcessingTarget(Scanner[] scanners) | |
| valueOf | back to summary |
|---|---|
| public static AnnotationManager. | |
| values | back to summary |
|---|---|
| public static AnnotationManager. | |