Class AnnotationManager
- java.lang.Object
-
- com.sun.faces.application.annotation.AnnotationManager
-
public class AnnotationManager extends Object
This class represents the central point for annotation handling within a web application.
-
-
Constructor Summary
Constructors Constructor Description AnnotationManager()Construct a new AnnotationManager instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyBehaviorAnnotations(FacesContext ctx, Behavior b)Apply annotations relevant toBehaviorinstances.voidapplyClientBehaviorRendererAnnotations(FacesContext ctx, ClientBehaviorRenderer b)Apply annotations relevant toClientBehaviorRendererinstances.voidapplyComponentAnnotations(FacesContext ctx, UIComponent c)Apply annotations relevant toUIComponentinstances.voidapplyConfigAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType, Set<? extends Class> annotatedClasses)Apply the configuration metadata contained with in theCollectionof annotated classes.voidapplyConverterAnnotations(FacesContext ctx, Converter c)Apply annotations relevant toConverterinstances.voidapplyRendererAnnotations(FacesContext ctx, Renderer r, UIComponent c)Apply annotations relevent toRendererinstances.voidapplySystemEventAnnotations(FacesContext ctx, SystemEvent e)voidapplyValidatorAnnotations(FacesContext ctx, Validator v)Apply annotations relevant toValidatorinstances.
-
-
-
Method Detail
-
applyConfigAnnotations
public void applyConfigAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType, Set<? extends Class> annotatedClasses)
Apply the configuration metadata contained with in the
Collectionof annotated classes.- Parameters:
ctx- FacesContext available during application initializationannotationType- the involved annotation typeannotatedClasses-Collectionof class names known to contain one or more Faces configuration annotations
-
applyBehaviorAnnotations
public void applyBehaviorAnnotations(FacesContext ctx, Behavior b)
Apply annotations relevant toBehaviorinstances.- Parameters:
ctx- theFacesContextfor the current requestb- the targetBehaviorto process
-
applyClientBehaviorRendererAnnotations
public void applyClientBehaviorRendererAnnotations(FacesContext ctx, ClientBehaviorRenderer b)
Apply annotations relevant toClientBehaviorRendererinstances.- Parameters:
ctx- theFacesContextfor the current requestb- the targetClientBehaviorRendererto process
-
applyComponentAnnotations
public void applyComponentAnnotations(FacesContext ctx, UIComponent c)
Apply annotations relevant toUIComponentinstances.- Parameters:
ctx- theFacesContextfor the current requestc- the targetUIComponentto process
-
applyValidatorAnnotations
public void applyValidatorAnnotations(FacesContext ctx, Validator v)
Apply annotations relevant toValidatorinstances.- Parameters:
ctx- theFacesContextfor the current requestv- the targetValidatorto process
-
applyConverterAnnotations
public void applyConverterAnnotations(FacesContext ctx, Converter c)
Apply annotations relevant toConverterinstances.- Parameters:
ctx- theFacesContextfor the current requestc- the targetConverterto process
-
applyRendererAnnotations
public void applyRendererAnnotations(FacesContext ctx, Renderer r, UIComponent c)
Apply annotations relevent toRendererinstances.- Parameters:
ctx- theFacesContextfor the current requestr- theRendererto processc- theUIComponentinstances that is associated with thisRenderer
-
applySystemEventAnnotations
public void applySystemEventAnnotations(FacesContext ctx, SystemEvent e)
-
-