How To Replace @Resource Annotation with Java 1.4 Compliant Version
Posted
by Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2010-06-14T15:25:39Z
Indexed on
2010/06/14
15:52 UTC
Read the original article
Hit count: 289
Hello,
I have a test class that has a @Resource annotation for a setter and I need to make it Java 1.4 compliant, so obviously the annotation has to go. I'm using Spring.
So, how would I replace something like @Resource("my.resource") so that the setter gets the correct dependency injection? Would I need to make a bean in an xml file?
I'm pretty new to this so if I'm not providing enough information, let me know.
© Stack Overflow or respective owner