org.enhydra.xml.xmlc
Class XMLCStdFactory
java.lang.Object
|
+--org.enhydra.xml.xmlc.XMLCStdFactory
- public class XMLCStdFactory
- extends java.lang.Object
- implements XMLCFactory
XMLC standard factory class. Used for creating instances of
XMLC-generated classes. This is a default factory used when
no special support, such as auto-recompilation is required.
Method Summary |
XMLObject |
create(java.lang.Class xmlcBasedClass)
Create an instance of a XMLC-generated class or a class derived
from one, given the name of the class, using the associated
classloader |
XMLObject |
create(java.lang.String xmlcClassName)
Create an instance of a XMLC-generated class or a class derived from
one, given either a class or an interface object, using the associated
classloader |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XMLCStdFactory
public XMLCStdFactory(java.lang.ClassLoader classLoader,
XMLCLogger logger)
- Constructor.
- Parameters:
classLoader
- Classloader used to load classes when a class name
is specified. If null, the system classload is used.logger
- XMLC logger or null for no logging.
create
public XMLObject create(java.lang.String xmlcClassName)
- Create an instance of a XMLC-generated class or a class derived from
one, given either a class or an interface object, using the associated
classloader
- Specified by:
- create in interface XMLCFactory
- Tags copied from interface: XMLCFactory
- Parameters:
xmlcClassName
- The name of the XMLC class or derived class.- Returns:
- The new object.
- See Also:
XMLCFactory.create(Class)
create
public XMLObject create(java.lang.Class xmlcBasedClass)
- Create an instance of a XMLC-generated class or a class derived
from one, given the name of the class, using the associated
classloader
- Specified by:
- create in interface XMLCFactory
- Tags copied from interface: XMLCFactory
- Parameters:
xmlcBasedClass
- The Class object for the class or interface.- Returns:
- The new object.