Maybe it is simple question? However i really want to know how to create a bean class in memory ?
For example,
public class TestBean
{
private String _a;
public String getA() { return _a;}
public void setA(String a) {_a = a}
}
As i donot know the attributes at compiling time,so i need to build the class in memory at run time. Do i need to use aop tool to do it ?
thanks in advance
http://jakarta.apache.org/bcel/ can help me :)
regards!