Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

clarity required on spring annotations  RSS feed

Paranidharan Selvaraj
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a web application developed using sturts-springs framework.. We are now trying to annotate the classes by which we are avoiding extended application context xml configuration. My issue is how to use annotations for passing a list of property values.


<bean name="/showAdminInbox" class="com.web.inbox.ShowAdminInboxAction">
<property name="inboxService" ref="inboxService" />
<property name="requiredPermissions">

Impl using Annotations:

public class ShowAdminInboxAction extends ApplicationAction{

@Autowired @Qualifier("inboxService")
private InboxService inboxService;

@Autowired @Qualifier("requiredPermissions");
// how to pass the list of values that is provided in xml file


how do i pass the collection values using annotations?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!