public class MetaBeanManager extends Object implements MetaBeanFinder
MetaBeanManagerFactory. | Modifier and Type | Field and Description |
|---|---|
protected MetaBeanBuilder |
builder
MetaBean builder
|
protected MetaBeanCache |
cache
MetaBean cache
|
protected boolean |
complete
Complete flag
|
| Constructor and Description |
|---|
MetaBeanManager()
Create a new MetaBeanManager instance.
|
MetaBeanManager(MetaBeanBuilder builder)
Create a new MetaBeanManager instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected final MetaBeanCache cache
protected final MetaBeanBuilder builder
protected boolean complete
public MetaBeanManager()
public MetaBeanManager(MetaBeanBuilder builder)
builder - meta bean builderpublic MetaBeanBuilder getBuilder()
MetaBeanBuilderpublic MetaBeanCache getCache()
MetaBeanCachepublic MetaBean findForId(String beanInfoId)
findForId in interface MetaBeanFinderbeanInfoId - - symbolic unique name of Meta Infopublic MetaBean findForClass(Class<?> clazz)
findForClass in interface MetaBeanFinderclazz - - bean classprotected void computeRelationships(MetaBean beanInfo)
beanInfo. must be called
AFTER cache.cache() to avoid endless loopbeanInfo - - the bean for which to compute relationshipsprotected void computeRelatedMetaBean(MetaProperty prop, String beanRef)
MetaBean.prop - meta propertybeanRef - bean referenceCopyright © 2010–2024 The Apache Software Foundation. All rights reserved.