com.sun.tools.xjc.generator.bean
Class DualObjectFactoryGenerator
java.lang.Object
com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator
com.sun.tools.xjc.generator.bean.DualObjectFactoryGenerator
public final class DualObjectFactoryGenerator
- extends ObjectFactoryGenerator
ObjectFactoryGenerator used when we generate
interfaces and implementations in separate packages.
publicOFG and privateOFG gives you access to
ObjectFactorys in both packages, if you need to.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
publicOFG
public final ObjectFactoryGenerator publicOFG
privateOFG
public final ObjectFactoryGenerator privateOFG
DualObjectFactoryGenerator
DualObjectFactoryGenerator(BeanGenerator outline,
Model model,
com.sun.codemodel.JPackage targetPackage)
populate
void populate(CElementInfo ei)
- Description copied from class:
ObjectFactoryGenerator
- Adds code for the given
CElementInfo to ObjectFactory.
- Specified by:
populate in class ObjectFactoryGenerator
populate
void populate(ClassOutlineImpl cc)
- Description copied from class:
ObjectFactoryGenerator
- Adds code that is relevant to a given
ClassOutlineImpl to
ObjectFactory.
- Specified by:
populate in class ObjectFactoryGenerator
getObjectFactory
public com.sun.codemodel.JDefinedClass getObjectFactory()
- Returns the private version (which is what gets used at runtime.)
- Specified by:
getObjectFactory in class ObjectFactoryGenerator