Monthly Archives: March 2011

Adding Plug-Ins To Your Application With Spring

Spring’s classpath scanning support can be leveraged to easily implement an application that supports plugins to be added. One method would be to simply scan a specific package (for example org.example.myapp.plugin for beans annotated with @Component, and add them to … Continue reading

Posted in Java, Spring | Leave a comment

Annotation-based Spring Configuration

Spring has been supporting annotation-based context configuration for some years now. Time to explore it if you haven’t already done so! A quick overview is available here. Getting rid of your XML configuration is as easy as: If you need … Continue reading

Posted in Java, Spring | 1 Comment