|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLBeanInfoRegistry
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(java.lang.Class, org.apache.commons.betwixt.XMLBeanInfo)
will be called so that the registry
can cache - if it wished - the XMLBeanInfo
.
Method Summary | |
---|---|
void |
flush()
Flush or resets the current registry to it's original state. |
XMLBeanInfo |
get(java.lang.Class forThisClass)
Get the XMLBeanInfo for the given class. |
void |
put(java.lang.Class forThisClass,
XMLBeanInfo beanInfo)
Associate a class with it's XMLBeanInfo . |
Method Detail |
---|
XMLBeanInfo get(java.lang.Class forThisClass)
XMLBeanInfo
for the given class.
forThisClass
- get XMLBeanInfo
for this class
null
if fresh introspection should be used
to find the XMLBeanInfo
void put(java.lang.Class forThisClass, XMLBeanInfo beanInfo)
XMLBeanInfo
.
forThisClass
- the class to associate with the given bean infobeanInfo
- the XMLBeanInfo
to use for the given classvoid flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |