/** * Verifies that required entities were autowired or set. */ @Override public void afterPropertiesSet() throws ServletException { super.afterPropertiesSet(); Assert.notNull(generator, "Metadata generator"); Assert.notNull(manager, "MetadataManager must be set"); }
initBeanWrapper(bw); bw.setPropertyValues(pvs, true); initFilterBean();
/** * Return the {@link Environment} associated with this filter. * <p>If none specified, a default environment will be initialized via * {@link #createEnvironment()}. * @since 4.3.9 */ @Override public Environment getEnvironment() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
/** * Calls the {@code initFilterBean()} method that might * contain custom initialization of a subclass. * <p>Only relevant in case of initialization as bean, where the * standard {@code init(FilterConfig)} method won't be called. * @see #initFilterBean() * @see #init(javax.servlet.FilterConfig) */ @Override public void afterPropertiesSet() throws ServletException { initFilterBean(); }
@Override public void destroy() { WebApplicationContext rootContext = WebApplicationContextUtils .getWebApplicationContext(getServletContext()); if (rootContext != null) { try { if (rootContext instanceof AbstractApplicationContext) { ((AbstractApplicationContext) rootContext).close(); // rose.root } } catch (Throwable e) { logger.error("", e); getServletContext().log("", e); } } try { mappingTree.destroy(); } catch (Throwable e) { logger.error("", e); getServletContext().log("", e); } super.destroy(); }
/** * Calls the {@code initFilterBean()} method that might * contain custom initialization of a subclass. * <p>Only relevant in case of initialization as bean, where the * standard {@code init(FilterConfig)} method won't be called. * @see #initFilterBean() * @see #init(javax.servlet.FilterConfig) */ @Override public void afterPropertiesSet() throws ServletException { initFilterBean(); }
@Override public void destroy() { WebApplicationContext rootContext = WebApplicationContextUtils .getWebApplicationContext(getServletContext()); if (rootContext != null) { try { if (rootContext instanceof AbstractApplicationContext) { ((AbstractApplicationContext) rootContext).close(); // rose.root } } catch (Throwable e) { logger.error("", e); getServletContext().log("", e); } } try { mappingTree.destroy(); } catch (Throwable e) { logger.error("", e); getServletContext().log("", e); } super.destroy(); }
@Override public void afterPropertiesSet() throws ServletException { super.afterPropertiesSet(); if (this.provider == null) { throw new ServletException("Missing NegotiateSecurityFilter.Provider"); } }
initBeanWrapper(bw); bw.setPropertyValues(pvs, true); initFilterBean();
/** * Calls the {@code initFilterBean()} method that might * contain custom initialization of a subclass. * <p>Only relevant in case of initialization as bean, where the * standard {@code init(FilterConfig)} method won't be called. * @see #initFilterBean() * @see #init(javax.servlet.FilterConfig) */ @Override public void afterPropertiesSet() throws ServletException { initFilterBean(); }
/** * Return the {@link Environment} associated with this filter. * <p>If none specified, a default environment will be initialized via * {@link #createEnvironment()}. * @since 4.3.9 */ @Override public Environment getEnvironment() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
@Override public void afterPropertiesSet() throws ServletException { super.afterPropertiesSet(); if (this.provider == null) { throw new ServletException("Missing NegotiateSecurityFilter.Provider"); } }
ResourceLoader resourceLoader = new ServletContextResourceLoader(filterConfig.getServletContext()); bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader)); initBeanWrapper(bw); bw.setPropertyValues(pvs, true); initFilterBean();
/** * Calls the {@code initFilterBean()} method that might * contain custom initialization of a subclass. * <p>Only relevant in case of initialization as bean, where the * standard {@code init(FilterConfig)} method won't be called. * @see #initFilterBean() * @see #init(javax.servlet.FilterConfig) */ @Override public void afterPropertiesSet() throws ServletException { initFilterBean(); }
/** * Return the {@link Environment} associated with this filter. * <p>If none specified, a default environment will be initialized via * {@link #createEnvironment()}. * @since 4.3.9 */ @Override public Environment getEnvironment() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
@Override public void afterPropertiesSet() throws ServletException { super.afterPropertiesSet(); if (this.provider == null) { throw new ServletException("Missing NegotiateSecurityFilter.Provider"); } }
initBeanWrapper(bw); bw.setPropertyValues(pvs, true); initFilterBean();
@Override protected void initFilterBean() throws ServletException { super.initFilterBean(); final WebApplicationContext applicationContext = WebApplicationContextUtils .getWebApplicationContext(getServletContext()); _tenantResolver = applicationContext.getBean(TenantResolver.class); }
/** * Return the {@link Environment} associated with this filter. * <p>If none specified, a default environment will be initialized via * {@link #createEnvironment()}. * @since 4.3.9 */ @Override public Environment getEnvironment() { if (this.environment == null) { this.environment = createEnvironment(); } return this.environment; }
@Override public void afterPropertiesSet() throws ServletException { super.afterPropertiesSet(); Assert.notNull(this.authenticationManager, "authenticationManager must be specified"); } }