Re: JAXB under Netbeans 8.1
Boris Heithecker <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAL465RFqGLUYPjFBNYGYmo53eeJCS4mLQmH3J_L2HKEvQxrowA@mail.gmail.com> |
Hello, I use my own annotation type plus LayerGeneratingProcessor. I've put it on github: https://github.com/borisheithecker/nbjaxb Hope this helps. Boris 2016-02-02 19:24 GMT+01:00 ctajuggler <[email protected]>: > Hi, > > I have a netbeans platform application project which requires > marshalling/unmarshalling java classes to/from xml. I am using the JAXB > interface to acheive this. My application has three modules. > > Does anyone know if it's possible to marshall a class in module A that is > an extension of an abstract class in module B? > > The critical line in a marshalling operation would be something like: > > String packageList = "moduleB.abstractclasspackage"; > > JAXBContext context = JAXBContext.newInstance(packageList, > moduleAClass.class.getClassLoader()); > > I'm basically having trouble getting the dependencies listed correctly in > packageList. > > Thanks > > > > >