On Wednesday, May 23, 2012 10:08:13 PM Benson Margulies wrote:
> In spite of being the sporadic maintainer of Aegis, I find myself too
> rusty to answer the following question:
> 
> Given a class like:
> 
> 
> class Blither {
>     public Blither(int blather, int bloop) { ... }
>     ..
> }
> 
> No no-args ctor...
> 
> Is there any short path through Aegis, or do I need to go read up on
> the JAX-B means? I have and want no XSD files here, this is all
> Java-first.

Honestly, I don't think there is a way to do it with either JAXB or Aegis.  
I know JAXB won't work without a no-args constructor.   I'm pretty sure 
Aegis won't work either.

With JAXB, you COULD add a no-args constructor and annotate the private 
fields with the @XmlElement and just not add any setters.  That would likely 
accomplish much of what you want.


-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to