|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.betwixt.registry.DefaultXMLBeanInfoRegistry
public class DefaultXMLBeanInfoRegistry
The default caching implementation. A hashmap is used.
Field Summary | |
---|---|
private Map |
xmlBeanInfos
Used to associated XMLBeanInfo 's to classes |
Constructor Summary | |
---|---|
DefaultXMLBeanInfoRegistry()
|
Method Summary | |
---|---|
void |
flush()
Flush existing cached XMLBeanInfo 's. |
XMLBeanInfo |
get(Class forThisClass)
Get XMLBeanInfo from cache. |
void |
put(Class forThisClass,
XMLBeanInfo beanInfo)
Put into cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map xmlBeanInfos
XMLBeanInfo
's to classes
Constructor Detail |
---|
public DefaultXMLBeanInfoRegistry()
Method Detail |
---|
public XMLBeanInfo get(Class forThisClass)
XMLBeanInfo
from cache.
get
in interface XMLBeanInfoRegistry
forThisClass
- the class for which to find a XMLBeanInfo
XMLBeanInfo
associated with given class
or null
if no XMLBeanInfo
has been associatedpublic void put(Class forThisClass, XMLBeanInfo beanInfo)
put
in interface XMLBeanInfoRegistry
forThisClass
- the class to cache the XMLBeanInfo
forbeanInfo
- the XMLBeanInfo
to cachepublic void flush()
XMLBeanInfo
's.
flush
in interface XMLBeanInfoRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |