Package org.springside.examples.showcase.common.service

Examples of org.springside.examples.showcase.common.service.AccountManager


  private AccountManager accountManager;
  private UserDao mockUserDao;

  @Before
  public void setUp() {
    accountManager = new AccountManager();
    mockUserDao = control.createMock(UserDao.class);
    accountManager.setUserDao(mockUserDao);
  }
View Full Code Here


   * 定时打印当前用户数到日志.
   */
  @SuppressWarnings("unchecked")
  @Override
  protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {
    AccountManager accountManager = applicationContext.getBean(AccountManager.class);
    Map config = (Map) applicationContext.getBean("timerJobConfig");

    long userCount = accountManager.getUserCount();
    String nodeName = (String) config.get("nodeName");

    logger.info("There are {} user in database, print by {}'s job.", userCount, nodeName);
  }
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.common.service.AccountManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.