users@jaxb2-commons.java.net

Re: Injecting Property Name Constants

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 08 Dec 2008 10:56:34 -0800

stoneskin wrote:
> All,
>
> I'm relatively new to JAXB, and in particular to using and creating plugins.
>
> I'm trying to create a plugin that injects property name constants for each
> field in each generated class. E.g. private final static String
> PROPERTYNAME_SOMEFIELD = "someField".
>
> Is there such a plugin out there that does this, or any documentation that I can
> look at for help?

I don't think such a plugin exists, but implementing it should be easy
enough.

The best way to start is by coping another plugin and use it as a
starting point.

>
> Thanks
>
> --
> --
> http://mo-stoneskin.blogspot.com/
> <http://thereisnothingworsethan.blogspot.com/>http://www.associatedcontent.com/user/285059/stoneskin.html
>
> Some people get lucky and kill two birds with one stone. Chuck Norris once
> killed four birds with half a stone. What's that? You say there's no such
> thing as half a stone? The four dead birds didn't think so either.
> (http://www.chucknorrisfacts.com/)
>
>
>
> --
> --
> http://mo-stoneskin.blogspot.com/
> http://thereisnothingworsethan.blogspot.com/
> http://www.associatedcontent.com/user/285059/stoneskin.html
>
> Some people get lucky and kill two birds with one stone. Chuck Norris once
> killed four birds with half a stone. What's that? You say there's no such
> thing as half a stone? The four dead birds didn't think so either.
> (http://www.chucknorrisfacts.com/)


-- 
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/