|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.validation.ValidatorFactory
public class ValidatorFactory
Factory to create Validator instances.
Constructor Summary | |
---|---|
ValidatorFactory()
Default constructor |
|
ValidatorFactory(XMLProperties xmlProps,
javax.servlet.ServletContext context)
Initialise this factory by creating and caching all Validator instances specified in the given XML configuration. |
Method Summary | |
---|---|
void |
destroy()
Destroy this factory by destroying the validator cache. |
Validator |
getValidator(java.lang.String name)
Return the named validator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorFactory()
public ValidatorFactory(XMLProperties xmlProps, javax.servlet.ServletContext context) throws ValidationException
xmlProps
- XML configuration properties.context
- The context where this factory is being used.
ValidationException
- if the factory cannot be created.Method Detail |
---|
public Validator getValidator(java.lang.String name)
name
- String containing the name of the validator to return.
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |