Oliver Drotbohm 5/25/2009

Using Spring's @Configurable in three easy steps

Read Original

This technical article explains how to use Spring's @Configurable annotation for dependency injection into objects not instantiated by Spring, such as domain model classes. It outlines three key steps: annotating the domain class, enabling injection in the configuration file, and setting up load-time weaving with AspectJ. The post includes code examples and references to a sample project.

Using Spring's @Configurable in three easy steps

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week