I have found this old thread, and i have a little doubt.
if I didn't use the GenericManager, Should i inject the manager using
applicationContext.xml, or there is another way to do it?
Example:
<bean id="myManager" class="com.proyecto.service.impl.MyManagerImpl">
<constructor-arg ref="myDao"/>
</bean>
<bean id="myAction" class="com.proyecto.action.MyAction" scope="prototype">
<property name="myManager" ref="myManager"/>
<bean>
public class MyAction extends BaseAction {
private MyManager myManager;
public MyManager getMyManager() {
return myManager;
}
public void setMyManager(MyManager myManager) {
this.myManager = myManager;
}
...
}
Is this right? The tutorial doesn't clarify it...
--
View this message in context:
http://appfuse.547863.n4.nabble.com/Extending-GenericManager-Spring-MVC-tp562233p2126065.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]