@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport .processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); } //CHECKSTYLE:OFF
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport .processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport .processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport .processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); SpringBeanAutowiringSupport .processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); s_keysMgr = _keysMgr; }
@Override public void init(final ServletConfig config) throws ServletException { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); }
@Test public void testProcessInjectionBasedOnServletContext() { StaticWebApplicationContext wac = new StaticWebApplicationContext(); AnnotationConfigUtils.registerAnnotationConfigProcessors(wac); MutablePropertyValues pvs = new MutablePropertyValues(); pvs.add("name", "tb"); wac.registerSingleton("testBean", TestBean.class, pvs); MockServletContext sc = new MockServletContext(); wac.setServletContext(sc); wac.refresh(); sc.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, wac); InjectionTarget target = new InjectionTarget(); SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(target, sc); assertTrue(target.testBean instanceof TestBean); assertEquals("tb", target.name); }
@Override public void init(ServletConfig config) throws ServletException { LogUtils.initLog4j("log4j-cloud.xml"); SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); // wait when condition is ready for initialization _timer.scheduleAtFixedRate(new TimerTask() { @Override public void run() { if (ComponentContext.getApplicationContext() != null) { _timer.cancel(); TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.CLOUD_DB); try { ComponentContext.initComponentsLifeCycle(); } finally { txn.close(); } } } }, 0, 1000); } }
protected void injectDependencies(ServletContext servletContext) { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, servletContext); }
@Override public void init(FilterConfig filterConfig) throws ServletException { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, filterConfig.getServletContext()); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); processInjectionBasedOnServletContext(this, config.getServletContext()); } }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); processInjectionBasedOnServletContext(this, config.getServletContext()); }
/** * Initialize the servlet by binding the spring attributes to it * * @param config is the servlet configuration * @throws ServletException */ @Override public void init(ServletConfig config) throws ServletException { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); namespace = resourceNamespace.getNamespace(); }
@Override public void init(ServletConfig config) throws ServletException { super.init(config); try { SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext()); configuration.load(); initializeProviders(); initializeFileService(); initExtras(); executeAsyncDatabaseChanges(); processEngine.getProcessEngineConfiguration() .getAsyncExecutor() .start(); LOGGER.info(Messages.ALM_SERVICE_ENV_INITIALIZED); } catch (Exception e) { LOGGER.error("Initialization error", e); throw new ServletException(e); } }