This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157151 - Add JAXB Plugin support to the JAXB Wizard
Summary: Add JAXB Plugin support to the JAXB Wizard
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker with 2 votes (vote)
Assignee: _ gmpatil
URL:
Keywords:
: 175441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-20 18:04 UTC by vieiro
Modified: 2009-10-28 20:35 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2009-01-20 18:04:21 UTC
The JAXB wizard does not support to add plugins to JAXB.

It would be great to be able to add plugins easily to the JAXB wizard in the next NetBeans release.
Comment 1 _ gmpatil 2009-01-20 19:50:27 UTC
vieiro, 
Could you please elaborate the enhancement request? 

Comment 2 vieiro 2009-01-20 20:45:55 UTC
Hi,

Sorry not to be clear enough in the first go. Let me know if I'm not clear now (I'm not very good with english :-/).

It would be great to enhance the existing JAXB wizard [1] to allow the user to include additional JAXB Plugins[2], such
those in JAXB Commons [3].

Say, for instance, that the user wants to use the "Fluent API" JAXB plugin [4]. The user could download the jar file for
this plugin from [4] and then include it somehow in the JAXBWizard (using a text field and a "browse" button similar to
those existing for the catalog file, for instance).  The user should also specify an additional "-Xfluent-api" command
line argument.

That way the JAXB Wizard could use those settings to run the ant task, and generate source code using that plugin.


[1] http://wiki.netbeans.org/JAXBWizard
[2] https://jaxb.dev.java.net/plugin.html
[3] https://jaxb2-commons.dev.java.net/
[4] https://jaxb2-commons.dev.java.net/fluent-api/

Comment 3 _ gmpatil 2009-01-26 19:54:53 UTC
Thanks vieiro for clarifying.
I feel enhancement requested definitely adds value to the Netbeans user. 
We will plan and work on this.
Comment 4 vieiro 2009-01-27 21:09:40 UTC
Glad to hear this is accepted.

The fact is that there're very interesting plugins out there. I've learned today about this one: 
https://jaxbvalidation.dev.java.net/using.html

That allows one to validate jaxb *objects* against the schema on the fly!
Comment 5 _ gmpatil 2009-10-27 23:10:10 UTC
*** Issue 175441 has been marked as a duplicate of this issue. ***
Comment 6 _ gmpatil 2009-10-28 19:31:42 UTC
Here are the steps I am thinking of user need to take for this to work.
- User created Java library, adding XJC pluggin and dependent Jars.
- In the JAXB Wizard will allow user to add Java library(ies) to a binding.
- In the JAXB Wizard will also allow user to add on or more free form XJC options like "-Xfluent-api", "-Xinject-code"

Let us know if above works or if I am missing anything.
Comment 7 vieiro 2009-10-28 20:35:49 UTC
That would be perfect, I think!!