org.enhydra.xml.xmlc.dom
Class XMLCDomFactoryCache
java.lang.Object
|
+--org.enhydra.xml.xmlc.dom.XMLCDomFactoryCache
- public class XMLCDomFactoryCache
- extends Object
Class that provides a cache of XMLCDomFactory objects. Since these classes
are simple, they are normally reentrant. This cache provides a mechanism
to maintain only one instance of each class. Currently, instances are
never freed from this cache. Also creates factories for use at
compile-time.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createFactory
public static XMLCDomFactory createFactory(String factoryClassName,
boolean isHtmlDocument)
- Create an instance of an XMLCDomFactory, however don't add it
to the cache. This is used at compile time to get a factory.
- Parameters:
factoryClassName
- Name of factory to create, if null, the
default is user.isHtmlDocument
- Use only to determine the default.
getFactory
public static XMLCDomFactory getFactory(Class factoryClass)
- Get an instance of an XMLCDomFactory given it's class.
checkForOutdatedClass
public static void checkForOutdatedClass(XMLCDomFactory domFactory)
- Check a DOM factory for outdated methods. Several methods were
changed in the XMLCDomFactory. Since few users implement these
classes, its was decided to just obsolute the methods. However,
since most XMLCDomFactories extend the base one, one just got
weird behavior (generic documents instead of specific ones).
To work around this, this method checks for outdated factory
methods and generates errors if found.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.