Reading the spring documentation I have learned how to inject other dependencies into objects. How would you inject springs application context itself into an object?
Joshua
Reading the spring documentation I have learned how to inject other dependencies into objects. How would you inject springs application context itself into an object?
Joshua
your bean should implement
Code:org.springframework.context.ApplicationContextAware
I appreciate the quick reply.
While I can use your solution in this case, there has to be a way to do this without needing inheritance. Any other ideas?
Joshua
It isn't inheritance.... it''s adding an interface, so it shouldn't break your class hierarchy.
dw
I apologize, I read your earlier post wrong. Thanks for the help.
Joshua
Of course, that only works for beans that come out of a Spring context.
Just for newbies.... (of which I am too).