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 with myString , doing something like myString.init(); where init() is a method in HPContentMethod ?
Or
If I have a bean:
<beans:bean id="myBean" class="com.app.search.HPContent" />
Is it possible to call this bean on String in the controller?
Ilkar source share