Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent : Creating a JavaBean dynamically

 
Vijay Padmanabhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create a Javabean based dynamically. I have a string containing the name of the bean to create. With this, i need to create the bean and execute methods whose name is contained in another string. Can anybody tell me where to look for some info on this with sample code if possible??
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is for Enterprise JavaBeans. I am moving this to Java(Advanced).
Hint: look at reflection.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic