Java: List listener for passed reference needed?
<p>I want to pass a reference of a dynamic list basically. in Class2 the getTheList method should keep getting the new list even when the orginal list changes. Should I add a listener or I have to change my design in a better way to do this?</p>

<pre><code>class1{
    public class1(){
       List orginalList=getOrginalList();
       Class2 c2=new Class2(orginalList);
    }

    public List getOrginalList(){ 
          //here read and return the updated orginal
         //List from a web service
    }           
}

class2{
    List myList;
    public class2(List realList){
        myList=realList;
    }
    private int getTheList(){
        //when I call this method I want to get the updated list
        return  myList.size();
    }    
}
</code></pre>
