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 Details

    • AnnotationManager

      public AnnotationManager()
      Construct a new AnnotationManager instance.
  • Method Details

    • applyConfigAnnotations

      public void applyConfigAnnotations(FacesContext ctx, Class<? extends Annotation> annotationType, Set<? extends Class> annotatedClasses)

      Apply the configuration metadata contained with in the Collection of annotated classes.

      Parameters:
      ctx - FacesContext available during application initialization
      annotationType - the involved annotation type
      annotatedClasses - Collection of class names known to contain one or more Faces configuration annotations
    • applyBehaviorAnnotations

      public void applyBehaviorAnnotations(FacesContext ctx, Behavior b)
      Apply annotations relevant to Behavior instances.
      Parameters:
      ctx - the FacesContext for the current request
      b - the target Behavior to process
    • applyClientBehaviorRendererAnnotations

      public void applyClientBehaviorRendererAnnotations(FacesContext ctx, ClientBehaviorRenderer b)
      Apply annotations relevant to ClientBehaviorRenderer instances.
      Parameters:
      ctx - the FacesContext for the current request
      b - the target ClientBehaviorRenderer to process
    • applyComponentAnnotations

      public void applyComponentAnnotations(FacesContext ctx, UIComponent c)
      Apply annotations relevant to UIComponent instances.
      Parameters:
      ctx - the FacesContext for the current request
      c - the target UIComponent to process
    • applyValidatorAnnotations

      public void applyValidatorAnnotations(FacesContext ctx, Validator v)
      Apply annotations relevant to Validator instances.
      Parameters:
      ctx - the FacesContext for the current request
      v - the target Validator to process
    • applyConverterAnnotations

      public void applyConverterAnnotations(FacesContext ctx, Converter c)
      Apply annotations relevant to Converter instances.
      Parameters:
      ctx - the FacesContext for the current request
      c - the target Converter to process
    • applyRendererAnnotations

      public void applyRendererAnnotations(FacesContext ctx, Renderer r, UIComponent c)
      Apply annotations relevent to Renderer instances.
      Parameters:
      ctx - the FacesContext for the current request
      r - the Renderer to process
      c - the UIComponent instances that is associated with this Renderer
    • applySystemEventAnnotations

      public void applySystemEventAnnotations(FacesContext ctx, SystemEvent e)