Intro

As an alternative and in some cases in addition to the existing naming conventions and external config add-ons it's possible (since r4) to use the type-safe config.

Creating a custom config

Custom config
ExtValCoreConfiguration.use(new CustomExtValCoreConfiguration(), true);

... use the previous snippet e.g. in an ExtVal startup-listener.

Using the type-safe config

Querying the configured values
ExtValCoreConfiguration.get().deactivateComponentInitialization();

Further details

Details about the available config entries are available in subclasses of org.apache.myfaces.extensions.validator.core.ExtValModuleConfiguration - see e.g. the corresponding java-doc. For further information about the mechanism is available in this wiki and external blogs.

  • No labels