Exemplo n.º 1
0
  public void testContainService() {
    MemberService mService =
        (MemberService) SpringUtil.getContext().getBean(MemberService.class.getName());
    assertNotNull(mService);

    ViewbarService vService =
        (ViewbarService) SpringUtil.getContext().getBean(ViewbarService.class.getName());
    assertNotNull(vService);

    BaseService bService = (BaseService) SpringUtil.getContext().getBean("loginService");
    assertNotNull(bService);
  }
Exemplo n.º 2
0
 public static ConfigService getConfigService() {
   ApplicationContext ctx = SpringUtil.getContext();
   ConfigServiceUtil util = (ConfigServiceUtil) ctx.getBean(ConfigServiceUtil.class.getName());
   return util.configService;
 }
Exemplo n.º 3
0
 public static RollingDAO getRollingDao() {
   ApplicationContext ctx = SpringUtil.getContext();
   RollingDAOUtil util = (RollingDAOUtil) ctx.getBean(RollingDAOUtil.class.getName());
   return util.rollingDao;
 }