File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Constructor injection using c:namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Constructor injection using c:namespace" Watch "Constructor injection using c:namespace" New topic
Author

Constructor injection using c:namespace

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Spring 3.1.0.RC1 : Can any one spot the error I making ? Thank you for any help.







Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

From the spring documentation,

For the rare cases where the constructor argument names are not available (usually if the bytecode was compiled without debugging information), one can use fallback to the argument indexes:

<-- 'c-namespace' index declaration -->
<bean id="foo" class="x.y.Foo" c:_0-ref="bar" c:_1-ref="baz">


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constructor injection using c:namespace
 
Similar Threads
AOP not getting invoked on my Target Bean Method --> Singer.perform() method
Spring MVC question
HibernateException: No Hibernate Session bound to thread
AOP Not working with Spring 3 MVC application
Spring with generics