|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for factories for instances of XMLC generated classes.
Method Summary | |
XMLObject |
create(Class xmlcBasedClass)
Create an instance of a XMLC-generated class or a class derived from one, given either a class or an interface object. |
XMLObject |
create(String xmlcClassName)
Create an instance of a XMLC-generated class or a class derived from one, given the name of the class. |
Method Detail |
public XMLObject create(String xmlcClassName)
The class must have a constructor that takes a single boolean argument that will disable the immediate build of the DOM if false. XMLC creates such a constructor in the classes it generates.
xmlcClassName
- The name of the XMLC class or derived class.create(Class)
public XMLObject create(Class xmlcBasedClass)
If a class is given, then it should be either the XMLC generated class or a class derived from it. This is useful for factories that create the given class then preform some operation with it, such as automatic recompilation.
If an interface is given, it is converted to the implementation name by appending "Impl" to the name. In this case, the implementation must be in the same package.
The class must have a constructor that takes a single boolean argument that will disable the immediate build of the DOM if false. XMLC creates such a constructor in the classes it generates.
xmlcBasedClass
- The Class object for the class or interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |