Edward Fox

Greenhorn
+ Follow
since Apr 07, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Edward Fox

I googled a bit more. Using the @XmlValue attribute on a field did the trick.

Thanks all.
Hi -

I'm trying to generate an XML request that fits this form:


I don't know how to annotate a field such that it fills in myNewPassword. Here's what I've been trying with various permutations in annotations.



And the string format comes out like this:


I feel like I'm missing something basic. Is there a way to map a field to the root element?

Thanks in advance!

I'm new to DI and would like to use it in a ground up project. Spring and Guice DI comparisons seem to be a wash (both are loved by their separate camps). The pros and cons nearly cancel each other out.

So all other things being equal, IDE support becomes a big part of the decision. Of Guice and Spring, which works better with Eclipse, IntelliJ and Netbeans?

Thanks!
Hi there -

I have 100+ Google Protocol Buffer classes, which are all machine generated, and all identified by a unique constant inside the class definition. (Designed by others, criticized by me of course). I need to build a run-time id-to-class map. I can do this easily walking the classloader and using reflection to look for the constants.

It all works fine in Eclipse, which I suspect is using an eager classloader for the IDE code completion and debugging. When I run my code from the command-line, I get an empty map. So I think I'm facing a lazy loading classloader in the general case.

How difficult is it to make my own eager loading classloader? Any example code?

I know there are many build-time alternatives to manage this. But the class loader seems much more slick and ultimately easier to maintain.

Thanks!

12 years ago