Oddjob With Spring

Spring is great for creating flexible applications by assembling loosely coupled components using XML. Here’s a simple Spring configuration file:

<beans xmlns="http://www.springframework.org/schema/beans"


  <bean id="hello" class="example.HelloWorldBean" />


Except that now you have to go back to your context assisted IDE and write some Java to launch it!
Continue reading

A Custom Property in Spring

(Please note there as a postscript to this post: A Simpler Custom Property in Spring)

<context:property-placeholder> is a really easy way to provide property replacements in Spring configurations with values from a standard Java Properties file. But what if you don’t want a property hard coded into a file – a clear text password for instance? Spring provides all the bits and pieces to write your own property replacement. Let me introduce my CustomPropertyConfigurer.
Continue reading