org.apache.commons.betwixt.registry.XMLBeanInfoRegistry |
Known Indirect Subclasses |
Plug in registry for XMLBeanInfo
's.
This decouples the implementation of the XMLBeanInfo
cache.
Users can plug in the standard implementations found
in this package to switch caching on and off.
Alternatively, they can plug-in an exotic cache of their own devising.
Users can also prime a cache with XMLBeanInfo
classes created programmatically.
To find a XMLBeanInfo
for a class,
XMLIntrospector
checks in the registry first
before starting introspection.
If the registry returns an XMLBeanInfo
, then that's used.
Otherwise, the XMLBeanInfo
will be found by standard introspection
and then put(Class, XMLBeanInfo)
will be called so that the registry
can cache - if it wished - the XMLBeanInfo
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Flush or resets the current registry to it's original state.
| |||||||||||
Get the
XMLBeanInfo for the given class. | |||||||||||
Associate a class with it's
XMLBeanInfo . |
Flush or resets the current registry to it's original state. It has to be implemented, however could be an empty implementation
Get the XMLBeanInfo
for the given class.
forThisClass | get XMLBeanInfo for this class |
---|
null
if fresh introspection should be used
to find the XMLBeanInfo
Associate a class with it's XMLBeanInfo
.
forThisClass | the class to associate with the given bean info |
---|---|
beanInfo | the XMLBeanInfo to use for the given class
|