-
Nov 18th, 2010, 04:50 AM
#1
How to load property of type java.lang.Class in a bean
Hi All,
i have a bean called KeyData which has a field of type Class.
public class KeyData<T> {
private final String columnId, fieldId;
private final Class<T> valueClass;
public KeyData(String columnId, String fieldId, Class<T> valueClass) {
this.columnId = columnId;
this.fieldId = fieldId;
this.valueClass = valueClass;
//Setters and getters
}
}
how to load the parameter valueClass thorugh constructor or property?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules