|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.util.dom.DefaultDOMLoader
Default implementation of a DOMLoader. TODO - what about thread safety?
Field Summary | |
protected java.util.Map |
classmap
|
protected DOMFactory |
defaultDOMFactory
|
protected java.util.Map |
factories
|
protected static DefaultDOMLoader |
globalLoader
|
protected static org.apache.log4j.Logger |
logger
|
protected java.lang.Object |
sync
|
Constructor Summary | |
DefaultDOMLoader()
|
Method Summary | |
void |
deregisterDOMFactory(java.lang.Class cl)
Deregister a DOMFactory for a given class of DOM object. |
org.w3c.dom.Document |
getDOM(java.lang.Class cl)
Get a DOM associated with a given class of object. |
org.w3c.dom.Document |
getDOM(java.lang.Class cl,
java.util.Locale locale)
Get a DOM associated with a given class of object, based on the specified locale. |
org.w3c.dom.Document |
getDOM(java.lang.Class cl,
ViewCapabilities vc)
Get a DOM associated with a given class of object, based on the specified ViewCapabilities |
static DOMLoader |
getGlobalInstance()
Get the global instance of the DOMLoader |
protected java.lang.Class |
lookupClass(java.lang.String className)
|
void |
registerDOMFactory(DOMFactory df,
java.lang.Class cl)
Register a DOMFactory for a given class of DOM object. |
void |
setDefaultDOMFactory(DOMFactory df)
Specify the default DOM factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected static DefaultDOMLoader globalLoader
protected DOMFactory defaultDOMFactory
protected java.util.Map factories
protected java.util.Map classmap
protected java.lang.Object sync
Constructor Detail |
public DefaultDOMLoader()
Method Detail |
public org.w3c.dom.Document getDOM(java.lang.Class cl) throws java.io.IOException
getDOM
in interface DOMLoader
cl
- the class of DOM object
java.io.IOException
- if the underlying DOMFactory that services this
request cannot handle this particular classpublic org.w3c.dom.Document getDOM(java.lang.Class cl, java.util.Locale locale) throws java.io.IOException
getDOM
in interface DOMLoader
cl
- the class of DOM objectlocale
- the target locale
java.io.IOException
- if the underlying DOMFactory that services this
request cannot handle this particular classpublic org.w3c.dom.Document getDOM(java.lang.Class cl, ViewCapabilities vc) throws java.io.IOException
getDOM
in interface DOMLoader
cl
- the class of DOM objectvc
- the clients ViewCapabilities (may be null)
java.io.IOException
- if the underlying DOMFactory that services this
request cannot handle this particular classprotected java.lang.Class lookupClass(java.lang.String className)
public void setDefaultDOMFactory(DOMFactory df)
setDefaultDOMFactory
in interface DOMLoader
df
- the DOMFactorypublic void registerDOMFactory(DOMFactory df, java.lang.Class cl)
registerDOMFactory
in interface DOMLoader
df
- the DOMFactorycl
- the class of DOM object to be handled by this factorypublic void deregisterDOMFactory(java.lang.Class cl)
deregisterDOMFactory
in interface DOMLoader
cl
- the class of DOM object to be handled by this factorypublic static DOMLoader getGlobalInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |