public class Jsr303MetaBeanFactory extends Object implements MetaBeanFactory
Modifier and Type | Field and Description |
---|---|
protected AnnotationProcessor |
annotationProcessor
AnnotationProcessor used. |
protected ApacheFactoryContext |
factoryContext
ApacheFactoryContext used |
protected static Logger |
log
Shared log instance
|
Constructor and Description |
---|
Jsr303MetaBeanFactory(ApacheFactoryContext factoryContext)
Create a new Jsr303MetaBeanFactory instance.
|
Modifier and Type | Method and Description |
---|---|
static MetaProperty |
addMetaProperty(MetaBean parentMetaBean,
AccessStrategy access)
Add a
MetaProperty to a MetaBean . |
void |
buildMetaBean(MetaBean metabean)
Initialize the specified
MetaBean . |
protected boolean |
hasValidationConstraintsDefined(Method method)
Learn whether a given Method has validation constraints defined via JSR303 annotations.
|
protected static final Logger log
protected final ApacheFactoryContext factoryContext
ApacheFactoryContext
usedprotected AnnotationProcessor annotationProcessor
AnnotationProcessor
used.public Jsr303MetaBeanFactory(ApacheFactoryContext factoryContext)
factoryContext
- public void buildMetaBean(MetaBean metabean)
MetaBean
. Add the validation features to the metabean that come from JSR303 annotations in the beanClass.buildMetaBean
in interface MetaBeanFactory
protected boolean hasValidationConstraintsDefined(Method method)
method
- true
if constraints detectedpublic static MetaProperty addMetaProperty(MetaBean parentMetaBean, AccessStrategy access)
MetaProperty
to a MetaBean
.parentMetaBean
- access
- MetaProperty
Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.