|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.MetaBeanManager
public class MetaBeanManager
Description: Default implementation for the interface to find, register and
create MetaBeans. In most situations a single instance of this class is
sufficient and you can get this instance from the
MetaBeanManagerFactory
.
Field Summary | |
---|---|
protected MetaBeanBuilder |
builder
MetaBean builder |
protected MetaBeanCache |
cache
MetaBean cache |
protected boolean |
complete
Complete flag |
Constructor Summary | |
---|---|
MetaBeanManager()
Create a new MetaBeanManager instance. |
|
MetaBeanManager(MetaBeanBuilder builder)
Create a new MetaBeanManager instance. |
Method Summary | |
---|---|
protected void |
computeRelatedMetaBean(MetaProperty prop,
String beanRef)
Compute a single related MetaBean . |
protected void |
computeRelationships(MetaBean beanInfo)
Compute all known relationships for beanInfo . |
MetaBean |
findForClass(Class<?> clazz)
Find the MetaBean for the specified class. |
MetaBean |
findForId(String beanInfoId)
Find a MetaBean with a certain id. |
MetaBeanBuilder |
getBuilder()
Get the builder used. |
MetaBeanCache |
getCache()
Get the cache used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final MetaBeanCache cache
protected final MetaBeanBuilder builder
protected boolean complete
Constructor Detail |
---|
public MetaBeanManager()
public MetaBeanManager(MetaBeanBuilder builder)
builder
- Method Detail |
---|
public MetaBeanBuilder getBuilder()
MetaBeanBuilder
public MetaBeanCache getCache()
MetaBeanCache
public MetaBean findForId(String beanInfoId)
findForId
in interface MetaBeanFinder
beanInfoId
- - symbolic unique name of Meta Info
public MetaBean findForClass(Class<?> clazz)
findForClass
in interface MetaBeanFinder
clazz
- - bean class
protected void computeRelationships(MetaBean beanInfo)
beanInfo
. must be called
AFTER cache.cache() to avoid endless loop
beanInfo
- - the bean for which to compute relationshipsprotected void computeRelatedMetaBean(MetaProperty prop, String beanRef)
MetaBean
.
prop
- beanRef
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |