public static ServletContextAttributeHelper create(final FilterConfig filterConfig) {
    Validate.notNull(filterConfig);
    final String nameFromParam = filterConfig.getInitParameter(INIT_PARAM_NAME);
    final String name = nameFromParam != null ? nameFromParam : DEFAULT_NAME;
    return new ServletContextAttributeHelper(filterConfig.getServletContext(), name);
  }
public static ServletContextAttributeHelper create ( final FilterConfig filterConfig ) { Validate . notNull ( filterConfig ) ; final String nameFromParam = filterConfig . getInitParameter ( INIT_PARAM_NAME ) ; final String name = nameFromParam != null ? nameFromParam : DEFAULT_NAME ; return new ServletContextAttributeHelper ( filterConfig . getServletContext ( ) , name ) ; }
Factory method which uses default name for storing/retrieving attributes in {@link ServletContext}.