This is my generic construtor
public TreeContainer(Class<T> type, Object parentPID, List<Object> childrensPID) throws IllegalArgumentException {
super(type);
this.parentPID = parentPID;
this.childrensPID = childrensPID;
}
This is my bean (with getter setter)
public class DirectoryBean implements Serializable {
private long id;
private String name;
private DirectoryBean parent;
private List<DirectoryBean> childrens;
}
I create a new Tree Container like this
TreeContainer<DirectoryBean> treeContainer = new TreeContainer<DirectoryBean>(DirectoryBean.class,"parent", "childrens" );
But the "childrens" parameter is illegal, how can i pass the list params in this situation