[jboss-user] [Microcontainer] - Allow retrieval of the collection instance from the bean [JB

rashidkamranbs do-not-reply at jboss.com
Thu Aug 31 14:08:47 EDT 2006


I mistakenly started the discussion on the Issue Tracker.. well my understanding of reading the collection instance from the bean rather than replacing it is as follows


  | public class MyClass
  | {
  |     private List<String> list;
  | 
  |     public List<String> getList();
  | 
  |     public MyClass(){
  |         list = new ArrayList<String>();
  |         list.add("One");
  |         list.add("Two");    
  |     }
  | }
  | <property name="list"><list><value>Three</value><list></property> 
  | 

So it seems to me that after bean initialization the bean will be having One-Two-Three as the member of the list property.

Just wanted to know if this is exactly whats gonna happen ? because if this is the case, I feel is not the conventional behavior where setter is supposed to replace the property.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968726#3968726

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968726



More information about the jboss-user mailing list