MentaTutorials

Compare Revisions

Ignore whitespace Rev 38 → Rev 29

/MentaRefAppWithService/trunk/src/main/java/org/menta/AppManager.java
4,14 → 4,11
 
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;
124,17 → 121,17
filter(new ValidationFilter());
filter(new TransactionFilter());
filter(new TransactionFilter("transaction"));
}
@Override
public void setupIoC() {
 
ioc(BeanSession.class, props.getClass("mentabean.dialect"));
ioc("beanSession", props.getClass("mentabean.dialect"));
ioc(UserDAO.class, JdbcUserDAO.class);
ioc("userDAO", JdbcUserDAO.class);
ioc(UserService.class, UserServiceImpl.class);
ioc("userService", UserServiceImpl.class);
}
@Override
/MentaRefAppWithService/trunk/pom.xml
45,7 → 45,7
<dependency>
<groupId>me.soliveirajr</groupId>
<artifactId>mentawai</artifactId>
<version>2.5.2</version>
<version>2.5.1-SNAPSHOT</version>
</dependency>
 
</dependencies>