|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.JMFactory
Defines a factory API that enables applications to configure and obtain a JMManagerFactory to work with XML documents.
Implementations of JMFactory
, JMManagerFactory
and JMManagerFactory
MUST be thread safe, once
they are initialized.
Field Summary | |
static java.lang.String |
CLASS_PROPERTY
Name of the property to use for loading a JMManagerFactory implementation. |
static java.lang.String |
URI_PROPERTY
Name of the property to use for loading the URI. |
Constructor Summary | |
JMFactory()
|
Method Summary | |
static JMManagerFactory |
getJMManagerFactory()
Returns a JMManagerFactory implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CLASS_PROPERTY
Name of the property to use for loading a JMManagerFactory implementation.
public static final java.lang.String URI_PROPERTY
Name of the property to use for loading the URI.
Constructor Detail |
public JMFactory()
Method Detail |
public static JMManagerFactory getJMManagerFactory() throws org.xml.sax.SAXException
Returns a JMManagerFactory implementation. The returned instance depends on a class name and an URI. Class name and URI are determined as follows:
de.ispsoft.jaxme.JMManagerFactory
is set, then the value is taken as a class name and the URI
is read from the system property
de.ispsoft.jaxme.JMManagerFactory.uri
.de.ispsoft.jaxme.JMManagerFactory
is set in that file, then the value is taken as a class
name and the URI is read from the property
de.ispsoft.jaxme.JMManagerFactory.uri
in the same file.de.ispsoft.jaxme.JMManagerFactoryImpl
is returned and the URI defaults to
resource:de/ispsoft/jaxme/JMManagerFactoryImpl.xml.setURI()
is
called on that instance. Finally the instance is returned.
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |