Archive for the 'Spring' Category

Spring 3.0’s SPEL, Yet Another EL?

3.0.0 M1 is the latest release of Spring Framework and Spring 3.0 contains some improvements over the previous 2.5 release.

First of all, as a disclaimer, I have to state that, as of this writing, there was no reference documentation for Spring 3.0. I’m sure my confusion about SPEL (Spring Expression Language) will disappear after a bit of reading. :) Otherwise, I’m going to have to dive into the code.

Continue reading ‘Spring 3.0’s SPEL, Yet Another EL?’

Technorati Tags: , , ,

IT@Cork Java Conference Part I: OSGi and Spring

There might be a downturn in the construction industry in these parts right now, but there is one company of plumbers that is still working flat out. SpringSource, the company behind the Spring Framework, has always plumbed the nastier parts of APIs and Frameworks where nobody likes to go, in order to make them more hygenic to use. They are still doing this and more besides, and two of their number came to IT@Cork’s 3rd annual Java Conference to keep us up to date with their activities. Ben Hale and Jonas Partner from SpringSource gave interesting presentations on OSGi and Spring Integration respectively. I’ll try to give a summary of Ben’s presentation in this post. I’ll catch up with Jonas and the other speakers in later posts.
Continue reading ‘IT@Cork Java Conference Part I: OSGi and Spring’

It’s Java Time Again in Cork

IT@Cork have upped the stakes.

Over the past few years the half-day Java conferences have proved to be very successful, attracting people from all over Munster and beyond. This year the event has switched to a full-day format, based on feedback from previous years. The line-up looks as exciting and relevent as ever and I look forward to my yearly fix of Java news, trends and in-depth technical content.

For those who have not already registered, check out the IT@Cork site here for details on speakers. The event takes place next Tuesday the 9th of September in the Radisson SAS in Little Island.

Copying custom attributes with CustomAttributeData class

The story of Spring.NET solution for copying of custom attributes from the original class to the proxy continues with an investigation on a new .NET2.0 family member - System.Reflection.CustomAttributeData http://msdn2.microsoft.com/en-us/library/system.reflection.customattributedata.aspx

Mark Pollack re-pointed me into this direction a few days ago. Truly I tried to execute CustomAttributeData.GetCustomAttributes from the debugger line before trying the Mono.Cecil approach few weeks ago, but it threw exception to me and I happily progressed to Mono.Cecil without caring about it.

Continue reading ‘Copying custom attributes with CustomAttributeData class’

Spring.NET - Introspection vs. Reflection. Use of Mono.Cecil library.

Thanks to Bruno Baia and Mark Pollack for pointing me to the Mono.Cecil introspection library. The focus of the previous post on this subject were limitations of System.Reflection library in relation to copying custom attributes from the original type to the target type.

High level inspection of Mono.Cecil showed that library looks very promising for resolving the custom attributes issue and far beyond this.

I only targeted some proof of concept for this time, and code to follow can be pretty naive at some places and only counts now with copying of type attributes from one type to another (not including methods, properties, parameters’ attributes). Though it should be pretty straight forward to evolve to the fully fledged solution.

Continue reading ‘Spring.NET - Introspection vs. Reflection. Use of Mono.Cecil library.’

Introspection vs. Reflection for Spring.NET

Why “versus”?

It can be hard to explain what the difference between the two is, so I’ll quote the veteran of the windows programming and debugging - John Robbins:

When I first started looking at rule development, I couldn’t quite get my head around what the Introspection engine was doing. After a while, it finally dawned on me that the way to think about it was that Introspection is just manual reflection. Whereas reflection loads up the assembly and calls the types and other information in the assembly, the Introspection engine maps the assembly into memory and goes through the grind of walking all the internal tables by hand. Interestingly, if you start looking hard at the Introspection engine with the Reflector tool, you’ll see that through Introspection, it also supports creating code, much like the Reflection.Emit namespace.

Continue reading ‘Introspection vs. Reflection for Spring.NET’

Technorati Tags: ,

TheServerSide Java Symposium, Barcelona: Day 3

Well, today was the final day of this year’s TSSJS. It’s been a really busy few days, I have been looking forward to some downtime but first I need to get this final blog entry completed!

There were two sessions today that really caught my interest:

  • Cutting Edge Productivity with RIFE - Geert Bevin of Uwyn and Terracotta
  • A Fast Hop into Real Object Oriented (ROO) - Ben Alex of Interface 21

Continue reading ‘TheServerSide Java Symposium, Barcelona: Day 3′

Technorati Tags: , , ,

TheServerSide Java Symposium, Barcelona: Day 2

This morning started with the interestingly titled Java Performance Myths: What Lurks Deep Inside a JVM, presented by Cliff Click. This sounds like the rejected title of a hammer horror movie and to be honest, in the context of Java conferences, the subject matter is about as old. Every Java conference I have been to over the last 5 years carrys a session like this; dismissing the myths that Java is a slow language compared to C++. Cliff did a good job of presenting the material, but I just didn’t take anything new away from it. However, I’ve been attending Java conferences for a number of years now, so I think, if the topic of JVM performance was new to you, you may walk away with a better insight into what is happening inside the JVM.

Continue reading ‘TheServerSide Java Symposium, Barcelona: Day 2′

SpringOne in Antwerp: Roundup

OK - I’ve got a few hours to kill (well, maim perhaps or at the very least stun) in Heathrow on my way back from SpringOne to so I’ll summarize and share some observations.

I’ve already covered the 2 morning sessions in the previous blog entry so I’ll just add a few points.
Continue reading ‘SpringOne in Antwerp: Roundup’

Technorati Tags:

SpringOne in Antwerp: Final Day

You can feel the mood already winding down. Developers are more fidgety than normal, and a bit less attentive and more chatty during the talks. Today is OSGi day for me at SpringOne. I’ve been to the joint presentation from Adrian Colyer and Costin Leau entitled OSGi, a New Foundation for Enterprise Apps and after lunch I’ll be seeing most of Hands-On Spring-OSGi with Martin Lippert. This morning I also attended Juergen Hoeller’s talk on Code Organization.

Continue reading ‘SpringOne in Antwerp: Final Day’

Technorati Tags: , , , , ,