@ApplicationScoped public class ValidatorManager extends Object implements ValidatorProvider
Validatorinstances which are made eligible for CDI.
Previously, in OmniFaces 1.6, all validators were proactively collected in an
Extension instance. However,
this construct failed when OmniFaces was installed in multiple WARs of an EAR. The extension was EAR-wide, but each
WAR got its own instance injected and only one of them will have access to the collected validators. Since OmniFaces
1.6.1, the whole extension is removed and the validators are now lazily collected in this manager class. See also
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the validator instance associated with the given validator ID, or
public Validator createValidator(Application application, String validatorId)
nullif there is none.