com.sun.tools.xjc.generator.bean

Class 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 {@code ObjectFactory}s in both packages, if you need to.

Field Summary
ObjectFactoryGeneratorprivateOFG
ObjectFactoryGeneratorpublicOFG
Constructor Summary
DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage)
Method Summary
JDefinedClassgetObjectFactory()
Returns the private version (which is what gets used at runtime.)
voidpopulate(CElementInfo ei)
voidpopulate(ClassOutlineImpl cc)

Field Detail

privateOFG

public final ObjectFactoryGenerator privateOFG

publicOFG

public final ObjectFactoryGenerator publicOFG

Constructor Detail

DualObjectFactoryGenerator

DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage)

Method Detail

getObjectFactory

public JDefinedClass getObjectFactory()
Returns the private version (which is what gets used at runtime.)

populate

void populate(CElementInfo ei)

populate

void populate(ClassOutlineImpl cc)