|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.Jsr303MetaBeanFactory
public class Jsr303MetaBeanFactory
Description: process the class annotations for JSR303 constraint validations to build the MetaBean with information
from annotations and JSR303 constraint mappings (defined in xml)
| Field Summary | |
|---|---|
protected AnnotationProcessor |
annotationProcessor
AnnotationProcessor used. |
protected ApacheFactoryContext |
factoryContext
ApacheFactoryContext used |
protected static Logger |
log
Shared log instance |
| Constructor Summary | |
|---|---|
Jsr303MetaBeanFactory(ApacheFactoryContext factoryContext)
Create a new Jsr303MetaBeanFactory instance. |
|
| Method Summary | |
|---|---|
static MetaProperty |
addMetaProperty(MetaBean parentMetaBean,
AccessStrategy access)
Add a MetaProperty to a MetaBean. |
void |
buildMetaBean(MetaBean metabean)
Add the validation features to the metabean that come from JSR303 annotations in the beanClass. |
protected boolean |
hasValidationConstraintsDefined(Method method)
Learn whether a given Method has validation constraints defined via JSR303 annotations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger log
protected final ApacheFactoryContext factoryContext
ApacheFactoryContext used
protected AnnotationProcessor annotationProcessor
AnnotationProcessor used.
| Constructor Detail |
|---|
public Jsr303MetaBeanFactory(ApacheFactoryContext factoryContext)
factoryContext - | Method Detail |
|---|
public void buildMetaBean(MetaBean metabean)
buildMetaBean in interface MetaBeanFactoryprotected boolean hasValidationConstraintsDefined(Method method)
method -
true if constraints detected
public static MetaProperty addMetaProperty(MetaBean parentMetaBean,
AccessStrategy access)
MetaProperty to a MetaBean.
parentMetaBean - access -
MetaProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||