You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Derek Brown <ze...@yahoo.com> on 2005/08/24 02:06:13 UTC

How to inject spring beans into classes

Hello,

I have been using my spring beans injected in to pages
and components by using <inject>.

I would now like to be able to inject a spring bean to
any class and access it by an abstract accessor or
something similar. How do I do this?

Thanks


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: How to inject spring beans into classes

Posted by Adam Czysciak <ad...@gmail.com>.
Derek Brown wrote:

> I would now like to be able to inject a spring bean to
> any class and access it by an abstract accessor or
> something similar. How do I do this?
use jdk 5 annotations:

@InjectObject("spring:quizFacade")
public abstract QuizFacade getQuizFacade();


-- 
Greets!
   Adam Czysciak
   adam.czysciak@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org