Implementing Seam style @Logger injection with Spring

Seam provides a number of features to help programmers with the tedious but necessary logging. One of them is the @Logger annotation that is used to inject a Seam Log instance into a Seam component. For example instead of writing: private Log log = LogFactory.getLog(MyClass.class); you can write: @Logger private Log log; and Seam will […]

New features in Spring IDE 2.0M3

Spring IDE 2.0M3 was released and the springframework.org site writes about the long-awaited Spring Webflow support. Spring IDE now includes graphical and XML editors for Spring WebFlow. I believe that this major new feature hides 3 very important new features that IMHO programmers will find more useful, since people working with Spring spend more time […]

Using java.util.Date values in Spring bean definitions

In a Spring bean definition you can set value properties to a bean by using the value attribute in the property element. For example below I set the value of the firstName property of a bean with id spiros of type com.tzavelas.beans.Person to Spiros. <bean id=”spiros” class=”com.tzavellas.beans.Person”> <property name=”firstName” value=”Spiros”/> </bean> In Spring XML, by […]

Testing Spring AOP code

In Using the Spring AOP Framework with EJB Components, Eugene Kuleshov presents a really nice way to test Spring AOP configuration code and advices. When you use Spring AOP use can easily test your target objects with unit tests, but how do you test the weaved code? In the above article Eugene Kuleshov uses unit […]

SpringIDE

If you are developing with the Spring Framework and you use the Eclipse IDE, then you should definitely check out the SpringIDE Eclipse plug-in. This plug-in is a Spring Framework subproject that aims to assist developers with the development of Spring applications. The main features of SpringIDE are: Spring bean definition editor (with auto-complete support) […]