|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidatorFactory
Factory for managing Validator
s. Used by
ApplicationImpl
.
Method Summary | |
---|---|
void |
addValidator(Application application,
java.lang.String validatorId,
java.lang.String validatorClass)
Register a new mapping of validator id to the name of the corresponding Validator class. |
Validator |
createValidator(Application application,
java.lang.String validatorId)
Instantiate and return a new Validator instance of the class
specified by a previous call to addValidator() for the
specified validator id. |
java.util.Iterator |
getValidatorIds(Application application)
Return an Iterator over the set of currently registered
validator ids for this Application . |
Method Detail |
---|
void addValidator(Application application, java.lang.String validatorId, java.lang.String validatorClass)
Validator
class. This allows subsequent calls to
createValidator()
to serve as a factory for
Validator
instances.
application
- the original Application of the underlying
JSF implementationvalidatorId
- The validator id to be registeredvalidatorClass
- The fully qualified class name of the corresponding
Validator
implementation
java.lang.NullPointerException
- if validatorId
or
validatorClass
is null
Validator createValidator(Application application, java.lang.String validatorId)
Validator
instance of the class
specified by a previous call to addValidator()
for the
specified validator id.
application
- the original Application of the underlying
JSF implementationvalidatorId
- The validator id for which to create and return a new
Validator
instance
FacesException
- if a Validator
of the specified id cannot be
created
java.lang.NullPointerException
- if validatorId
is null
java.util.Iterator getValidatorIds(Application application)
Iterator
over the set of currently registered
validator ids for this Application
.
application
- the original Application of the underlying
JSF implementation
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |