コード例 #1
0
  @Override
  protected void initFilterBean() throws ServletException {
    super.initFilterBean();
    //		cookieDomain = FilterConfigUtils.getParameter(getFilterConfig(), "cookieDomain",
    // cookieDomain);
    //		cookiePath = FilterConfigUtils.getParameter(getFilterConfig(), "cookiePath", cookiePath);
    //		sessionIdCookieName = FilterConfigUtils.getParameter(getFilterConfig(),
    // "sessionIdCookieName", sessionIdCookieName);

    sessionStore = lookSessionStore();
    //		wac.getAutowireCapableBeanFactory().autowireBeanProperties(this,
    // AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT, false);
  }
コード例 #2
0
  @Override
  public void afterPropertiesSet() throws ServletException {
    super.afterPropertiesSet();

    if (log.isTraceEnabled()) {
      log.trace("afterPropertiesSet()");
    }

    sessionPersistenceListeners = new ArrayList<SessionPersistenceListener>();
    // scan the application context for SessionPersistenceListeners
    Map beans = applicationContext.getBeansOfType(SessionPersistenceListener.class);
    for (Object beanName : beans.keySet().toArray()) {
      sessionPersistenceListeners.add((SessionPersistenceListener) beans.get(beanName));
      if (log.isTraceEnabled()) {
        log.trace("added listener: " + beanName.toString());
      }
    }
  }
コード例 #3
0
 @Override
 protected void initFilterBean() throws ServletException {
   version = defaultIfEmpty(version, randomAlphanumeric(7));
   super.initFilterBean();
 }