@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);
  }
  @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();
 }