use guice to DI servlet, service, dao . use easymock to unit test
commit90f3cfcc1f703fb85dcd8c8ff14697212e03ba7e
authorTommy Wang <tommy@gaixie.org>
Wed, 28 Jul 2010 02:29:07 +0000 (28 10:29 +0800)
committerTommy Wang <tommy@gaixie.org>
Wed, 28 Jul 2010 02:29:07 +0000 (28 10:29 +0800)
treea684406c3cf38eb1fabd2caf78b86a4aa1bdbabc
parentdac81c4510c4d8cd8d95006a45597a6a828fdb8e
use guice to DI servlet, service, dao . use easymock to unit test
24 files changed:
jibu-core/pom.xml
jibu-core/src/main/java/org/gaixie/jibu/annotation/Transaction.java [new file with mode: 0644]
jibu-core/src/main/java/org/gaixie/jibu/interceptor/TransactionInterceptor.java [new file with mode: 0644]
jibu-core/src/main/java/org/gaixie/jibu/security/dao/SecurityDAOModule.java [moved from jibu-core/src/main/java/org/gaixie/jibu/security/dao/SecurityDAOFactory.java with 50% similarity]
jibu-core/src/main/java/org/gaixie/jibu/security/dao/UserDAO.java
jibu-core/src/main/java/org/gaixie/jibu/security/dao/impl/UserDAODerby.java
jibu-core/src/main/java/org/gaixie/jibu/security/dao/impl/UserDAOPgSQL.java
jibu-core/src/main/java/org/gaixie/jibu/security/service/LoginService.java [copied from jibu-core/src/test/java/org/gaixie/jibu/security/service/LoginServiceTest.java with 60% similarity]
jibu-core/src/main/java/org/gaixie/jibu/security/service/SecurityServiceModule.java [copied from jibu-core/src/test/java/org/gaixie/jibu/security/service/LoginServiceTest.java with 53% similarity]
jibu-core/src/main/java/org/gaixie/jibu/security/service/UserService.java [copied from jibu-core/src/test/java/org/gaixie/jibu/security/service/LoginServiceTest.java with 56% similarity]
jibu-core/src/main/java/org/gaixie/jibu/security/service/impl/LoginServiceImpl.java [copied from jibu-core/src/main/java/org/gaixie/jibu/security/service/LoginService.java with 60% similarity]
jibu-core/src/main/java/org/gaixie/jibu/security/service/impl/UserServiceImpl.java [copied from jibu-core/src/main/java/org/gaixie/jibu/security/service/UserService.java with 53% similarity]
jibu-core/src/test/java/org/gaixie/jibu/security/service/LoginServiceTest.java
jibu-core/src/test/java/org/gaixie/jibu/security/service/UserServiceTest.java
jibu-web/jibu-core-extjs/pom.xml
jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/GuiceServletConfig.java [new file with mode: 0644]
jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/servlet/LoginFilter.java [moved from jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/filter/LoginFilter.java with 94% similarity]
jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/servlet/LoginServlet.java
jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/servlet/MainServlet.java
jibu-web/jibu-core-extjs/src/main/java/org/gaixie/jibu/security/servlet/SecurityServletModule.java [new file with mode: 0644]
jibu-web/jibu-core-extjs/src/main/webapp/WEB-INF/web.xml
jibu-web/jibu-core-extjs/src/main/webapp/index.html
jibu-web/jibu-core-extjs/src/test/java/org/gaixie/jibu/security/servlet/LoginServletTest.java
pom.xml