In my code, I have an HPContentModule:
@Resource(name = "HPContentModule")
private HPContentModule hpContentModule;
I am wondering if it is possible to get a String
such that:
String myString = "hpContentModule";
so that I can then call hpContentModule
using myString
, doing something like myString.init();
, where init()
is a method in HPContentMethod
?
Or,
If I have the bean:
<beans:bean id="myBean" class="com.app.search.HPContent" />
Can I call this bean by String
in the controller?