Announcement Announcement Module
Collapse
No announcement yet.
How to load property of type java.lang.Class in a bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
Working...
X