Top Description Inners Fields Constructors Methods
com.sun.faces.application.annotation

public Class ValidatorConfigHandler

extends Object
implements ConfigAnnotationHandler
Class Inheritance
All Implemented Interfaces
com.sun.faces.application.annotation.ConfigAnnotationHandler
Imports
java.lang.annotation.Annotation, java.util.Collection, .HashMap, .List, .Map, jakarta.faces.application.Application, jakarta.faces.context.FacesContext, jakarta.faces.validator.FacesValidator

ConfigAnnotationHandler for FacesValidator annotated classes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Collection<Class<? extends Annotation>>
private Map<ValidatorConfigHandler.ValidatorInfo, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

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

public Collection<Class<? extends Annotation>>
public void
push(FacesContext
the involved faces context
ctx
)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HANDLESback to summary
private static final Collection<Class<? extends Annotation>> HANDLES
validatorsback to summary
private Map<ValidatorConfigHandler.ValidatorInfo, String> validators

Constructor Detail

ValidatorConfigHandlerback to summary
public ValidatorConfigHandler()

Method Detail

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

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

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

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#collect(Class, java.lang.annotation.Annotation)
getHandledAnnotationsback to summary
public Collection<Class<? extends Annotation>> getHandledAnnotations()

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.getHandledAnnotations.

Returns:Collection<Class<? extends Annotation>>

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.getHandledAnnotations.

a Collection of annotations handled by this ConfigAnnotationHandler implementation

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#getHandledAnnotations()
pushback to summary
public void push(FacesContext ctx)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

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

Parameters
ctx:FacesContext

the involved faces context

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#push(jakarta.faces.context.FacesContext)
com.sun.faces.application.annotation back to summary

private Class ValidatorConfigHandler.ValidatorInfo

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.faces.application.annotation.ValidatorConfigHandler.ValidatorInfo

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv
ValidatorInfo(String validatorId, boolean isDefault)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isDefaultback to summary
pack-priv final boolean isDefault
validatorIdback to summary
pack-priv final String validatorId

Constructor Detail

ValidatorInfoback to summary
pack-priv ValidatorInfo(String validatorId, boolean isDefault)