Spring's autowire by type and inheritance

Posted Tue, 20 Feb 2007 13:22:55 GMT

It seems that if a Spring context contains a class (A) and its superclass (B), the autowire by type for the superclass (B) fails.

That’s because when it does the lookup for beans of type B, the context returns both B and A. It’s not wrong in any way, it’s probably exactly the right thing to do, but it somehow makes it a bit trickier to do tests well, for me now anyway….

Or, may be one should never instantiate classes which are not leafs of the hierarchy tree. Should may be all classes that can be extended be abstract?…. All non-final classes abstract…hm… weird thoughts, don’t pay too much attention…..

no comments | no trackbacks

I'd like to be able to initialise collections in Java

Posted Mon, 19 Feb 2007 11:43:00 GMT

Wouldn’t it be nice if you could say something like?

Map measures = new Map ( "Height" -> 175, "Weight" -> 69 )

as you can do in Perl, or even :

Map measures = new Map ( new MapEntry("Height", 175), new MapEntry("Weight", 69) )

….yes, it would be nice…

no comments | no trackbacks

Where's Unxutils gone?

Posted Sat, 17 Feb 2007 20:05:21 GMT

I loved this little package - Unxutils - http://unxutils.sourceforge.net/ - it contained ports the most useful unix commands, such as which, tail, etc for Windows. I used to just unpack them and drop them in system32 and then I could use them from a DOS prompt.

Unfortunately the zip is not there anymore and can’t find it available for download anywhere.

no comments | no trackbacks

What's the deal with Google and Opera?

Posted Fri, 16 Feb 2007 07:23:00 GMT

Opera is the best browser. It does not hang, it’s fast as lightning and its memory footprint is a fraction of the the others’. OK, there aren’t so many widgets as plugins, but given the size of the user community they’re doing quite well.

It’s annoying that a lot of Google tools don’t support Opera. Some do, but not officially. It can’t be that difficult to make Google docs support it.

Today I considered using another online document package, because I really like Opera - http://writer.zoho.com/jsp/home.jsp. What I’ll be missing though is the ease of sharing that I have with Google docs - it’s all become very integrated now and my friends are all on it, and it’s just so easy when everybody is already on it.

Google seem to have been fast enough and vocal enough with these tools to get everyone on board and achieve a bit of a vendor lock…

no comments | no trackbacks

Share your code

Posted Sat, 10 Feb 2007 10:57:00 GMT

I’ve got this pretty small project that I’m doing for myself and friends. It’s just a small web-site we have for fun. I don’t have that much time at the mo to work on it, so a friend suggested he’d do some of the work.

The first thing that came to mind was “right, cool, we’ll just make a CVS repository somewhere and work on it together”. That way we’re not growing out of sync, I can see what he’s doing (he’s not that experienced) and I know he’s not broken it cause I and everyone else can try to build before committing.

Except, I don’t have the time and desire to run and manage a CVS server. So, quite naturally, I thought there’d be a place on the net somewhere which offers free source control repositories. After all you can share your pictures, share your thoughts (in a blog), share your documents (google docs), share your calendar, all that for free, why shouldn’t you be able to share your code??? And, sorry, I don’t mean sourceforge - this is not an open source project and I don’t want to be bound by some licenses too long for me to read.

Well, my search has been unsuccessful so far. If anyone knows a place where you can share your code with a few other people, please write to me!

2 comments | no trackbacks

Older posts: 1 2

Home

Who's George?

Recent entries