public class DefaultXMLBeanInfoRegistry extends Object implements XMLBeanInfoRegistry, PolymorphicReferenceResolver
Constructor and Description |
---|
DefaultXMLBeanInfoRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush existing cached
XMLBeanInfo 's. |
XMLBeanInfo |
get(Class forThisClass)
Get
XMLBeanInfo from cache. |
void |
put(Class forThisClass,
XMLBeanInfo beanInfo)
Put into cache
|
Class |
resolveType(ElementMapping mapping,
ReadContext context)
Checks all registered
XMLBeanInfo 's for the
first suitable match. |
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
public Class resolveType(ElementMapping mapping, ReadContext context)
XMLBeanInfo
's for the
first suitable match.
If a suitable one is found, then the class of that info is used.resolveType
in interface PolymorphicReferenceResolver
mapping
- ElementMapping
describing the (polymorphic) element being mapped,
not nullcontext
- ReadContext
, not nullClass
describing the type to which this element should be bound,
or null if the reference cannot be resolvedPolymorphicReferenceResolver.resolveType(org.apache.commons.betwixt.io.read.ElementMapping, org.apache.commons.betwixt.io.read.ReadContext)
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.