这可以生成对象的实例吗?
public <?> getDAO ( Class<?>DAO){
//if using this DAO class is permitted or DAO class exists
//we have HashMap map
return map.get(DAO);
}
或者也许是
public <T> T getDAO ( <T extends AGenericDAO> DAO){ // GenericDAO<E,I>
//if using this DAO class is permitted or DAO class exists
//we have HashMap map
return map.get(DAO);
}
?