This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Pre initializing a collection for automated JAXB generations. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Pre initializing a collection for automated JAXB generations." Watch "Pre initializing a collection for automated JAXB generations." New topic
Author

Pre initializing a collection for automated JAXB generations.

nithin chinni
Ranch Hand

Joined: Dec 02, 2010
Posts: 41
Hi, I am using JAXB for generating objects form XSD's. The way jaxb objects are generating right now is,



But I want something like this


Is there a way in the jaxb bindings to specify that I want a pre initialization for jaxb elements.
 
Don't get me started about those stupid light bulbs.
 
subject: Pre initializing a collection for automated JAXB generations.
 
Similar Threads
@WebService method returning a custom class containing a HashMap / JAX-WS
effect of private static final objects in java?
Mocking
generics code mixed with legacy collection
Difference between instace initializers and the member initializers