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

public Interface ConfigAnnotationHandler

Known Direct Implementers
com.sun.faces.application.annotation.ConverterConfigHandler, com.sun.faces.application.annotation.NamedEventConfigHandler, com.sun.faces.application.annotation.RenderKitConfigHandler, com.sun.faces.application.annotation.ValidatorConfigHandler, com.sun.faces.application.annotation.BehaviorConfigHandler, com.sun.faces.application.annotation.ComponentConfigHandler
Imports
java.lang.annotation.Annotation, java.util.Collection, jakarta.faces.context.FacesContext

Implementations of the interface will be called during application initialization to process any configuration annotations within the web application.

Method Summary

Modifier and TypeMethod and Description
public void
collect(Class<?>
annotated class
target
,
Annotation
Annotation to process
annotation
)

Collect metadata based on the provided Class and Annotation to be processed later by push(jakarta.faces.context.FacesContext).

public Collection<Class<? extends Annotation>>

Returns:

a Collection of annotations handled by this ConfigAnnotationHandler implementation
getHandledAnnotations
()

public void
push(FacesContext
the involved faces context
ctx
)

Push the configuration based on the collected metadata to the current application.

Method Detail

collectback to summary
public void collect(Class<?> target, Annotation annotation)

Collect metadata based on the provided Class and Annotation to be processed later by push(jakarta.faces.context.FacesContext).

Note

This method may be called more than once.

Parameters
target:Class<?>

annotated class

annotation:Annotation

Annotation to process

getHandledAnnotationsback to summary
public Collection<Class<? extends Annotation>> getHandledAnnotations()
Returns:Collection<Class<? extends Annotation>>

a Collection of annotations handled by this ConfigAnnotationHandler implementation

pushback to summary
public void push(FacesContext ctx)

Push the configuration based on the collected metadata to the current application.

Parameters
ctx:FacesContext

the involved faces context