|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.validator.core.ExtValCoreConfiguration
public abstract class ExtValCoreConfiguration
ExtVal Core Module configuration. 'custom' as prefix is used for 'optional' configurations. That means if a method returns null ExtVal uses a different approach to find an implementation e.g. via a naming convention -> all other methods aren't allowed to return null if there is no additional rule.
Constructor Summary | |
---|---|
protected |
ExtValCoreConfiguration()
|
Method Summary | |
---|---|
abstract boolean |
activateMarkupMetaData()
Per default component initialization overrules properties of the component. |
abstract boolean |
activateRequiredInitialization()
Indicates if the ComponentInitializer's should mark UIComponent s as 'required'
if an equivalent constraint is hosted by the referenced property. |
abstract Class<? extends Annotation> |
constraintSourceAnnotation()
Returns a class of an annotation which should be used as ConstraintSource
(use a custom implementation, if it is required to keep implementations independent of ExtVal) |
abstract String |
customBasePackage()
Define a new base package where custom versions of the ExtVal artifacts can be found. |
abstract String |
customComponentInitializerClassName()
Defines the name of a custom ComponentInitializer . |
abstract String |
customComponentMetaDataExtractorClassName()
Defines the class name of a custom MetaDataExtractor . |
abstract String |
customComponentMetaDataExtractorFactoryClassName()
Defines the name of a custom ComponentMetaDataExtractorFactory
which creates MetaDataExtractor s. |
abstract String |
customFacesMessageFactoryClassName()
Defines the name of a custom FacesMessageFactory
which creates and converts FacesMessage s
(Default implementation:
DefaultValidationParameterExtractorFactory .) |
abstract String |
customInformationProviderBeanClassName()
Defines the class name for a custom InformationProviderBean . |
abstract String |
customMessageBundleBaseName()
The name of the Resource bundle used for looking up resource keys of validation messages. |
abstract String |
customMessageResolverFactoryClassName()
Defines the name of a custom
which is responsible for creating the
MessageResolver
for a given ValidationStrategy . |
abstract String |
customMetaDataExtractionInterceptorClassName()
Defines the name of a custom MetaDataExtractionInterceptor . |
abstract String |
customMetaDataStorageFilterClassName()
Defines the name of a custom MetaDataStorageFilter . |
abstract String |
customMetaDataToValidationStrategyNameMapperClassName()
Defines the name of the custom NameMapper that
takes a constraint-key and points to the
ValidationStrategy
that is linked to it. |
abstract String |
customMetaDataTransformerFactoryClassName()
Defines the name of a custom
which is responsible for creating a
MetaDataTransformer
for a given
ValidationStrategy . |
abstract String |
customPropertyValidationInterceptorClassName()
Defines the name of a custom PropertyValidationInterceptor . |
abstract String |
customStaticValidationStrategyMappingSource()
Name of the optional property file which contains the mappings between ExtVal constraints and the ValidationStrategy s for validating them. |
abstract String |
customStorageManagerFactoryClassName()
Defines the name of a custom which is responsible for creating the
StorageManager for
a given storage class. |
abstract String |
customValidationExceptionInterceptorClassName()
Defines the name of a custom ValidationExceptionInterceptor . |
abstract String |
customValidationParameterExtractorClassName()
Defines the class name of a custom ValidationParameterExtractor . |
abstract String |
customValidationParameterExtractorFactoryClassName()
Defines the name of a custom ValidationParameterExtractorFactory
which creates
ValidationParameterExtractor s. |
abstract String |
customValidationParameterFactoryClassName()
Defines the name of a custom
which is responsible for creating the final Validation Parameter class. |
abstract String |
customValidationStrategyFactoryClassName()
Defines the name of a custom which is
responsible for creating a
ValidationStrategy
for a given metaData-key. |
abstract String |
customValidationStrategyToMessageResolverNameMapperClassName()
Defines the name of a custom NameMapper that
takes a ValidationStrategy and points to the
MessageResolver
that is linked to it. |
abstract String |
customValidationStrategyToMetaDataTransformerNameMapperClassName()
Defines the name of the custom NameMapper that
takes a ValidationStrategy and points to the
MetaDataTransformer
that is linked to it. |
abstract String |
customViewRootInterceptorClassName()
|
abstract boolean |
deactivateActionBasedGroupValidation()
|
abstract boolean |
deactivateAjaxActionBasedGroupValidation()
|
abstract boolean |
deactivateComponentInitialization()
Defines if the mechanism of component initialization (before the rendering process) should be deactivated. |
abstract boolean |
deactivateDefaultConvention()
Indicates if ExtVal should deactivate the default convention. |
abstract boolean |
deactivateDefaultNameMappers()
Indicates if ExtVal should deactivate all the internal defined name mappers. |
abstract boolean |
deactivateElResolver()
Deprecated. |
abstract boolean |
deactivateRenderKitFactory()
Defines if the default entry point of ExtVal should be deactivated. |
abstract boolean |
deactivateRequiredAttributeSupport()
Defines if ExtVal should reset the required attribute of a UIComponent
after the decoding the component. |
abstract boolean |
deactivateValidationParameters()
Defines if the mechanism of generic validation parameters should be deactivated. |
abstract boolean |
deactivateViewRootInterceptor()
Per default ExtVal creates a custom UIViewRoot implementation to allow
group-validation,... |
abstract Class<? extends ValidationParameter> |
disableClientSideValidationValidationParameter()
Defines the validation parameter annotation which indicates that the validation information should not be transferred to the UIComponent . |
static ExtValCoreConfiguration |
get()
Returns the configuration for the core-module stored in the context. |
abstract Class<? extends Annotation> |
ignoreConstraintSourceAnnotation()
Returns a class of an annotation which should be used as IgnoreConstraintSource
(use a custom implementation, if it is required to keep implementations independent of ExtVal) |
abstract boolean |
interpretEmptyStringSubmittedValuesAsNull()
Defines if ExtVal should convert empty strings to null (just for the validation process). |
abstract ProjectStageResolver |
projectStageResolver()
Defines the ProjectStageResolver that should be used by ExtVal. |
abstract ProxyHelper |
proxyHelper()
Defines the ProxyHelper that should be used by ExtVal. |
abstract Class<? extends ExtValRendererProxy> |
rendererProxy()
Defines an optional RendererProxy
that should be used by ExtVal. |
abstract Class<? extends Annotation> |
targetPropertyAnnotation()
Returns a class of an annotation which should be used as TargetProperty
(use a custom implementation, if it is required to keep implementations independent of ExtVal) |
abstract Class<? extends Annotation> |
targetPropertyIdAnnotation()
Returns a class of an annotation which should be used as TargetPropertyId
(use a custom implementation, if it is required to keep implementations independent of ExtVal) |
static boolean |
use(ExtValCoreConfiguration config,
boolean forceOverride)
Sets a new configuration for the core-module |
abstract boolean |
validateEmptyFields()
Defines if ExtVal should validate empty fields. |
abstract Class |
violationSeverity()
Returns the class which should be used as violation severity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ExtValCoreConfiguration()
Method Detail |
---|
public static ExtValCoreConfiguration get()
public static boolean use(ExtValCoreConfiguration config, boolean forceOverride)
config
- The new configuration for the core-moduleforceOverride
- use true to replace an existing configuration
public abstract String customMessageBundleBaseName()
DefaultValidationErrorMessageResolver
public abstract String customBasePackage()
InformationProviderBean.setupCustomizableInformation()
public abstract String customInformationProviderBeanClassName()
InformationProviderBean
. This class must extend
InformationProviderBean
.
InformationProviderBean
public abstract String customComponentMetaDataExtractorClassName()
MetaDataExtractor
.
(Default implementation:
DefaultComponentMetaDataExtractor
).
MetaDataExtractor
.org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractorFactory#createWith(java.util.Map)
public abstract String customValidationParameterExtractorClassName()
ValidationParameterExtractor
.
(Default implementation:
DefaultValidationParameterExtractor
.
DefaultValidationParameterExtractorFactory.create()
public abstract String customStaticValidationStrategyMappingSource()
ValidationStrategy
s for validating them.
These mappings can be used to overrule all other configurations.
DefaultValidationStrategyFactory.initStaticMappings()
public abstract String customComponentInitializerClassName()
ComponentInitializer
.
ComponentInitializer
.ExtValContextInvocationOrderAwareInternals.lazyInitComponentInitializers()
public abstract String customValidationExceptionInterceptorClassName()
ValidationExceptionInterceptor
.
ValidationExceptionInterceptor
.ExtValContextInvocationOrderAwareInternals.lazyInitValidationExceptionInterceptors()
public abstract String customPropertyValidationInterceptorClassName()
PropertyValidationInterceptor
.
PropertyValidationInterceptor
.ExtValContextInvocationOrderAwareInternals.lazyInitPropertyValidationInterceptors()
public abstract String customMetaDataExtractionInterceptorClassName()
MetaDataExtractionInterceptor
.
MetaDataExtractionInterceptor
.ExtValContextInvocationOrderAwareInternals.lazyInitMetaDataExtractionInterceptors()
public abstract ProxyHelper proxyHelper()
ProxyHelper
that should be used by ExtVal.
(Default implementation: DefaultProxyHelper
).
The method should never return null.
ProxyHelper
that should be used.ProxyUtils.getProxyHelper()
public abstract ProjectStageResolver projectStageResolver()
ProjectStageResolver
that should be used by ExtVal.
(Default implementation: DefaultProjectStageResolver
If the method returns null, the project-stage 'Production' will be used.
ProjectStage.getCurrentProjectStage()
public abstract Class<? extends ExtValRendererProxy> rendererProxy()
RendererProxy
that should be used by ExtVal.
RendererProxy
that should be used.ExtValLazyRendererProxy.getLazyRenderer()
,
ExtValRendererWrapper.ExtValRendererWrapper(javax.faces.render.Renderer)
public abstract Class<? extends Annotation> constraintSourceAnnotation()
ConstraintSource
(use a custom implementation, if it is required to keep implementations independent of ExtVal)
ConstraintSourceUtils.findMappedClass(org.apache.myfaces.extensions.validator.core.storage.PropertyStorage, java.lang.Class, java.lang.String)
public abstract Class<? extends Annotation> ignoreConstraintSourceAnnotation()
IgnoreConstraintSource
(use a custom implementation, if it is required to keep implementations independent of ExtVal)
ConstraintSourceUtils.getIgnoreConstraintSourceAnnotationImplementation()
public abstract Class<? extends Annotation> targetPropertyAnnotation()
TargetProperty
(use a custom implementation, if it is required to keep implementations independent of ExtVal)
ConstraintSourceUtils.getTargetPropertyAnnotationImplementation()
public abstract Class<? extends Annotation> targetPropertyIdAnnotation()
TargetPropertyId
(use a custom implementation, if it is required to keep implementations independent of ExtVal)
ConstraintSourceUtils.getTargetPropertyIdAnnotationImplementation()
public abstract Class violationSeverity()
ViolationSeverity
).
public abstract Class<? extends ValidationParameter> disableClientSideValidationValidationParameter()
UIComponent
.
ExtValStartupListener.initDisableClientSideValidationKey()
public abstract String customValidationStrategyToMessageResolverNameMapperClassName()
NameMapper
that
takes a ValidationStrategy and points to the
MessageResolver
that is linked to it.
(The class should implement the interface NameMapper
CustomConfiguredValidationStrategyToMsgResolverNameMapper.getCustomNameMapperClassName()
public abstract String customMetaDataToValidationStrategyNameMapperClassName()
NameMapper
that
takes a constraint-key and points to the
ValidationStrategy
that is linked to it.
(The class should implement the interface NameMapper
CustomConfiguredAnnotationToValidationStrategyNameMapper.CustomConfiguredAnnotationToValidationStrategyNameMapper()
public abstract String customValidationStrategyToMetaDataTransformerNameMapperClassName()
NameMapper
that
takes a ValidationStrategy and points to the
MetaDataTransformer
that is linked to it.
(The class should implement the interface NameMapper
CustomConfiguredValidationStrategyToMetaDataTransformerNameMapper.getCustomNameMapperClassName()
public abstract String customMetaDataStorageFilterClassName()
MetaDataStorageFilter
.
MetaDataStorageFilter
.DefaultMetaDataStorage.initFilters()
public abstract String customValidationStrategyFactoryClassName()
which is
responsible for creating a
ValidationStrategy
for a given metaData-key.
(Default implementation:
DefaultValidationStrategyFactory
.)
ClassMappingFactory
DefaultFactoryFinder.createValidationStrategyFactory()
public abstract String customMessageResolverFactoryClassName()
which is responsible for creating the
MessageResolver
for a given ValidationStrategy
.
(Default implementation:
DefaultMessageResolverFactory
.)
ClassMappingFactory
DefaultFactoryFinder.createMessageResolverFactory()
public abstract String customComponentMetaDataExtractorFactoryClassName()
ComponentMetaDataExtractorFactory
which creates MetaDataExtractor
s.
(Default implementation:
DefaultComponentMetaDataExtractorFactory
.)
ComponentMetaDataExtractorFactory
DefaultFactoryFinder.createComponentMetaDataExtractorFactory()
public abstract String customValidationParameterExtractorFactoryClassName()
ValidationParameterExtractorFactory
which creates
ValidationParameterExtractor
s.
(Default implementation:
DefaultValidationParameterExtractorFactory
.)
ValidationParameterExtractorFactory
DefaultFactoryFinder.createValidationParameterExtractorFactory()
public abstract String customValidationParameterFactoryClassName()
which is responsible for creating the final Validation Parameter class.
(Default implementation:
DefaultValidationParameterFactory
.)
ClassMappingFactory
DefaultFactoryFinder.createValidationParameterFactory()
public abstract String customMetaDataTransformerFactoryClassName()
which is responsible for creating a
MetaDataTransformer
for a given
ValidationStrategy
.
(Default implementation:
DefaultMetaDataTransformerFactory
.)
ClassMappingFactory
DefaultFactoryFinder.createMetaDataTransformerFactory()
public abstract String customStorageManagerFactoryClassName()
which is responsible for creating the
StorageManager
for
a given storage class.
(Default implementation:
DefaultStorageManagerFactory
.)
DefaultFactoryFinder.createStorageManagerFactory()
public abstract String customFacesMessageFactoryClassName()
FacesMessageFactory
which creates and converts FacesMessage
s
(Default implementation:
DefaultValidationParameterExtractorFactory
.)
FacesMessageFactory
DefaultFactoryFinder.createFacesMessageFactory()
public abstract boolean activateRequiredInitialization()
UIComponent
s as 'required'
if an equivalent constraint is hosted by the referenced property.
org.apache.myfaces.extensions.validator.core.initializer.component.AbstractHtmlCoreComponentsComponentInitializer#configureComponent(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.util.Map)
public abstract boolean deactivateDefaultConvention()
public abstract boolean deactivateDefaultNameMappers()
ExtValStartupListener.initNameMappers()
@Deprecated public abstract boolean deactivateElResolver()
DefaultELHelper
public abstract boolean deactivateComponentInitialization()
UIComponent
s should not be initialized by ExtVal, false otherwise.ExtValContextInternals.isComponentInitializationActivated()
,
AbstractValidationInterceptor.isComponentInitializationDeactivated()
public abstract boolean deactivateValidationParameters()
ExtValUtils.getValidationParameterExtractor()
public abstract boolean deactivateRenderKitFactory()
ExtValRenderKitFactory.checkRenderKitFactoryDeactivation()
public abstract boolean deactivateRequiredAttributeSupport()
UIComponent
after the decoding the component. (It's needed for special use-cases.)
ExtValUtils.isRequiredResetActivated()
public abstract boolean interpretEmptyStringSubmittedValuesAsNull()
public abstract boolean validateEmptyFields()
NullValueAwareValidationStrategy
annotation.
(Introduced by JSF 2.0)
Compared to std. JSF it's activated by default!
public abstract boolean activateMarkupMetaData()
public abstract boolean deactivateActionBasedGroupValidation()
public abstract boolean deactivateViewRootInterceptor()
UIViewRoot
implementation to allow
group-validation,... triggered via action-methods. It's possible to restore the default behaviour by
deactivating this feature.
public abstract String customViewRootInterceptorClassName()
public abstract boolean deactivateAjaxActionBasedGroupValidation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |