This discussion is archived
1 Reply Latest reply: Aug 7, 2009 2:46 AM by 843793 RSS

[Seeking help] How to create a bean with annotations @ runtime?

843793 Newbie
Currently Being Moderated
I would like 2 create a bean, @ runtime, as below:
public class A {
  @MyAnnotation(id = "ID")
  private String id = "";

  public String getId() { ... }
  public void setId(String id) { ... }
}
Can anyone tell me how 2 achieve this? I know how 2 create a bean dynamically, however with annotations it is a bit tricky ..

Cheers!

Edited by: olove66 on Aug 7, 2009 2:00 AM