MentaTutorials

Compare Revisions

Ignore whitespace Rev 28 → Rev 38

/MentaRefAppWithService/trunk/src/main/java/org/menta/AppManager.java
4,11 → 4,14
 
import org.menta.action.LoginAction;
import org.menta.action.UserAction;
import org.menta.dao.UserDAO;
import org.menta.dao.jdbc.JdbcUserDAO;
import org.menta.model.Group;
import org.menta.model.Language;
import org.menta.model.User;
import org.menta.service.UserService;
import org.menta.service.impl.UserServiceImpl;
import org.mentabean.BeanSession;
import org.mentabean.DBTypes;
import org.mentabean.util.SQLUtils;
import org.mentawai.action.LogoutAction;
121,17 → 124,17
filter(new ValidationFilter());
filter(new TransactionFilter("transaction"));
filter(new TransactionFilter());
}
@Override
public void setupIoC() {
 
ioc("beanSession", props.getClass("mentabean.dialect"));
ioc(BeanSession.class, props.getClass("mentabean.dialect"));
ioc("userDAO", JdbcUserDAO.class);
ioc(UserDAO.class, JdbcUserDAO.class);
ioc("userService", UserServiceImpl.class);
ioc(UserService.class, UserServiceImpl.class);
}
@Override