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
- public MetaBeanBuilder getBuilder()
MetaBeanBuilder
public MetaBeanCache getCache()
MetaBeanCache
public MetaBean findForId(String beanInfoId)
findForId
in interface MetaBeanFinder
beanInfoId
- - symbolic unique name of Meta Infopublic MetaBean findForClass(Class<?> clazz)
findForClass
in interface MetaBeanFinder
clazz
- - 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
- beanRef
- Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.