|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.core.validator.JvConfigurationWrapper
public class JvConfigurationWrapper
Wrapper class that is exposed to validator's implementations. This is done on purpose for not exposing everything from the configuration. This way maintenance for backwards compatibility in the future is easier preserved.
| Constructor Summary | |
|---|---|
JvConfigurationWrapper(JvConfiguration configuration,
AnnotationValidator annotationValidator)
Construct this wrapper |
|
| Method Summary | |
|---|---|
AnnotationValidator |
getAnnotationValidator()
Get the validator to use if needed (some advanced validation annotations need it) |
javax.el.ELContext |
getELContext()
Returns the context that is used by the framework. |
javax.el.ExpressionFactory |
getExpressionFactory()
Returns a new ExpressionFactory to use |
JavalidExtension |
getExtension(java.lang.String nameExtension)
Returns the extension for given name if found, null otherwise. |
java.lang.String[] |
getProxyRecognizers()
Returns all names to recognize a classname as a proxied object (only valid if isCheckForProxy() returns true, else this returns null). |
boolean |
isCheckAnnotationsOnMethods()
Returns true if annotations must be checked on methods, if false fields must be used. |
boolean |
isCheckForProxy()
Return true if classes should check the parent class for an annotation (method annotations e.g) if not found on the current method/class. |
boolean |
isExtensionLoaded(java.lang.String nameExtension)
Returns true if an extension under given name is loaded, false otherwise. |
boolean |
isPluralAnnotationSupported(java.lang.String className)
Returns true if given plural annotation is supported. |
java.lang.Object |
lookupBean(java.lang.String beanLookupName)
Attemps to lookup given beanName and returns bean instance if found (could be null). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JvConfigurationWrapper(JvConfiguration configuration,
AnnotationValidator annotationValidator)
configuration - The configurationannotationValidator - The validator in use (with given configuration)| Method Detail |
|---|
public java.lang.Object lookupBean(java.lang.String beanLookupName)
beanLookupName - The beanName to lookup
public java.lang.String[] getProxyRecognizers()
public boolean isCheckForProxy()
public AnnotationValidator getAnnotationValidator()
public boolean isCheckAnnotationsOnMethods()
public javax.el.ELContext getELContext()
JvConfiguration.getELContext()public javax.el.ExpressionFactory getExpressionFactory()
public boolean isExtensionLoaded(java.lang.String nameExtension)
nameExtension - The name of the extension
public JavalidExtension getExtension(java.lang.String nameExtension)
nameExtension - The name of the extension.
public boolean isPluralAnnotationSupported(java.lang.String className)
className - The annotation classname to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||