users@jaxb.java.net

XJC Plugin development question

From: Gertelman, Michael, VF-JP <michael.gertelman_at_vodafone.com>
Date: Mon, 13 Mar 2006 15:16:30 +0900

Hello,

I'm trying to inject some code into the ObjectFactory from the impl package.
I use the following code in my Plugin's run method:

 for (PackageOutline po : outline.getAllPackageContexts()) {
      JDefinedClass objectFactory = po.objectFactory();
 }

Actually, Iterator always returns only one PackageOutline - for the interfaces package. My problem is that this objectFactory refers to the class in the interfaces package.
If I inject any code into this objectFactory it affects only the one from the interfaces package.

How can I access the ObjectFactory class from the implementation package ?

Thanks,
Michael