org.apache.myfaces.extensions.validator.core
Class ExtValContext
java.lang.Object
org.apache.myfaces.extensions.validator.core.ExtValContext
public class ExtValContext
- extends Object
- Since:
- 1.x.1
Method Summary |
void |
addComponentInitializer(ComponentInitializer componentInitializer)
|
boolean |
addGlobalProperty(String name,
Object value)
|
boolean |
addGlobalProperty(String name,
Object value,
boolean forceOverride)
|
void |
addMetaDataExtractionInterceptor(MetaDataExtractionInterceptor metaDataExtractionInterceptor)
|
boolean |
addModuleConfiguration(Class<? extends ExtValModuleConfiguration> key,
ExtValModuleConfiguration extValConfig)
Registers the configuration object specified in the parameter 'config' for the type 'key' within ExtVal
overriding
possible another registration. |
boolean |
addModuleConfiguration(Class<? extends ExtValModuleConfiguration> key,
ExtValModuleConfiguration config,
boolean forceOverride)
Registers the configuration object specified in the parameter 'config' for the type 'key' within ExtVal. |
void |
addProcessedInformationRecorder(ProcessedInformationRecorder processedInformationRecorder)
|
void |
addPropertyValidationInterceptor(PropertyValidationInterceptor propertyValidationInterceptor)
|
void |
addStaticConfiguration(StaticConfigurationNames name,
StaticConfiguration<String,String> staticConfig)
|
void |
addValidationExceptionInterceptor(ValidationExceptionInterceptor validationExceptionInterceptor)
|
void |
denyRendererInterceptor(Class<? extends RendererInterceptor> rendererInterceptorClass)
|
void |
deregisterRendererInterceptor(Class<? extends RendererInterceptor> rendererInterceptorClass)
|
List<ComponentInitializer> |
getComponentInitializers()
|
static ExtValContext |
getContext()
|
FactoryFinder |
getFactoryFinder()
|
Object |
getGlobalProperty(String name)
|
InformationProviderBean |
getInformationProviderBean()
|
List<MetaDataExtractionInterceptor> |
getMetaDataExtractionInterceptors()
|
List<MetaDataExtractionInterceptor> |
getMetaDataExtractionInterceptorsFor(Class moduleKey)
|
List<MetaDataExtractionInterceptor> |
getMetaDataExtractionInterceptorsWith(Map<String,Object> properties)
|
|
getModuleConfiguration(Class<T> targetType)
Retrieves the configuration object of the type specified by the parameter 'targetType'. |
List<ProcessedInformationRecorder> |
getProcessedInformationRecorders()
|
List<PropertyValidationInterceptor> |
getPropertyValidationInterceptors()
|
List<PropertyValidationInterceptor> |
getPropertyValidationInterceptorsFor(Class moduleKey)
|
List<RendererInterceptor> |
getRendererInterceptors()
|
SkipValidationEvaluator |
getSkipValidationEvaluator()
|
List<StaticConfiguration<String,String>> |
getStaticConfiguration(StaticConfigurationNames name)
|
List<ValidationExceptionInterceptor> |
getValidationExceptionInterceptors()
|
ViolationSeverityInterpreter |
getViolationSeverityInterpreter()
|
boolean |
registerRendererInterceptor(RendererInterceptor rendererInterceptor)
|
void |
setFactoryFinder(FactoryFinder factoryFinder)
|
void |
setSkipValidationEvaluator(SkipValidationEvaluator skipValidationEvaluator)
|
void |
setSkipValidationEvaluator(SkipValidationEvaluator skipValidationEvaluator,
boolean forceOverride)
|
void |
setViolationSeverityInterpreter(ViolationSeverityInterpreter violationSeverityInterpreter)
|
void |
setViolationSeverityInterpreter(ViolationSeverityInterpreter violationSeverityInterpreter,
boolean forceOverride)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtValContext
protected ExtValContext()
getContext
public static ExtValContext getContext()
setViolationSeverityInterpreter
public void setViolationSeverityInterpreter(ViolationSeverityInterpreter violationSeverityInterpreter)
setViolationSeverityInterpreter
public void setViolationSeverityInterpreter(ViolationSeverityInterpreter violationSeverityInterpreter,
boolean forceOverride)
getViolationSeverityInterpreter
public ViolationSeverityInterpreter getViolationSeverityInterpreter()
getFactoryFinder
public FactoryFinder getFactoryFinder()
setFactoryFinder
public void setFactoryFinder(FactoryFinder factoryFinder)
setSkipValidationEvaluator
public void setSkipValidationEvaluator(SkipValidationEvaluator skipValidationEvaluator)
setSkipValidationEvaluator
public void setSkipValidationEvaluator(SkipValidationEvaluator skipValidationEvaluator,
boolean forceOverride)
getSkipValidationEvaluator
public SkipValidationEvaluator getSkipValidationEvaluator()
getRendererInterceptors
public List<RendererInterceptor> getRendererInterceptors()
registerRendererInterceptor
public boolean registerRendererInterceptor(RendererInterceptor rendererInterceptor)
deregisterRendererInterceptor
public void deregisterRendererInterceptor(Class<? extends RendererInterceptor> rendererInterceptorClass)
denyRendererInterceptor
public void denyRendererInterceptor(Class<? extends RendererInterceptor> rendererInterceptorClass)
addComponentInitializer
public void addComponentInitializer(ComponentInitializer componentInitializer)
getComponentInitializers
public List<ComponentInitializer> getComponentInitializers()
addValidationExceptionInterceptor
public void addValidationExceptionInterceptor(ValidationExceptionInterceptor validationExceptionInterceptor)
getValidationExceptionInterceptors
public List<ValidationExceptionInterceptor> getValidationExceptionInterceptors()
addPropertyValidationInterceptor
public void addPropertyValidationInterceptor(PropertyValidationInterceptor propertyValidationInterceptor)
getPropertyValidationInterceptors
public List<PropertyValidationInterceptor> getPropertyValidationInterceptors()
- Returns:
- all global validation interceptors
getPropertyValidationInterceptorsFor
public List<PropertyValidationInterceptor> getPropertyValidationInterceptorsFor(Class moduleKey)
addMetaDataExtractionInterceptor
public void addMetaDataExtractionInterceptor(MetaDataExtractionInterceptor metaDataExtractionInterceptor)
getMetaDataExtractionInterceptors
public List<MetaDataExtractionInterceptor> getMetaDataExtractionInterceptors()
- Returns:
- all global meta-data extraction interceptors
getMetaDataExtractionInterceptorsFor
public List<MetaDataExtractionInterceptor> getMetaDataExtractionInterceptorsFor(Class moduleKey)
getMetaDataExtractionInterceptorsWith
public List<MetaDataExtractionInterceptor> getMetaDataExtractionInterceptorsWith(Map<String,Object> properties)
getProcessedInformationRecorders
public List<ProcessedInformationRecorder> getProcessedInformationRecorders()
addProcessedInformationRecorder
public void addProcessedInformationRecorder(ProcessedInformationRecorder processedInformationRecorder)
getInformationProviderBean
public InformationProviderBean getInformationProviderBean()
getStaticConfiguration
public List<StaticConfiguration<String,String>> getStaticConfiguration(StaticConfigurationNames name)
addStaticConfiguration
public void addStaticConfiguration(StaticConfigurationNames name,
StaticConfiguration<String,String> staticConfig)
addGlobalProperty
public boolean addGlobalProperty(String name,
Object value)
addGlobalProperty
public boolean addGlobalProperty(String name,
Object value,
boolean forceOverride)
getGlobalProperty
public Object getGlobalProperty(String name)
getModuleConfiguration
public <T extends ExtValModuleConfiguration> T getModuleConfiguration(Class<T> targetType)
- Retrieves the configuration object of the type specified by the parameter 'targetType'. The type should be
direct descendants of ExtValModuleConfiguration and the same as the type you used to register the configuration
(see addModuleConfiguration).
- Type Parameters:
T
- - Parameters:
targetType
- Key that specifies the type of configuration, should be direct descendants of
ExtValModuleConfiguration
- Returns:
- configuration object
- Since:
- r4
addModuleConfiguration
public boolean addModuleConfiguration(Class<? extends ExtValModuleConfiguration> key,
ExtValModuleConfiguration extValConfig)
- Registers the configuration object specified in the parameter 'config' for the type 'key' within ExtVal
overriding
possible another registration.
- Parameters:
key
- Key that specifies the type of configuration, should be direct descendants of
ExtValModuleConfigurationextValConfig
- Configuration object to register
- Returns:
- true
- Since:
- r4
addModuleConfiguration
public boolean addModuleConfiguration(Class<? extends ExtValModuleConfiguration> key,
ExtValModuleConfiguration config,
boolean forceOverride)
- Registers the configuration object specified in the parameter 'config' for the type 'key' within ExtVal. When a
configuration object already exist for the key and we don't specify to override it (parameter forceOverride) the
configuration isn't registered.
- Parameters:
key
- Key that specifies the type of configuration, should be direct descendants of
ExtValModuleConfigurationconfig
- Configuration object to registerforceOverride
- Do we override another custom configuration that is already registered.
- Returns:
- true is the configuration is registered or false if already existed and no ofrce override specified.
- Since:
- r4
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.