Java Code Examples for org.springframework.web.context.support.SpringBeanAutowiringSupport#processInjectionBasedOnServletContext()

The following examples show how to use org.springframework.web.context.support.SpringBeanAutowiringSupport#processInjectionBasedOnServletContext() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BootstrapServlet.java    From multiapps-controller with Apache License 2.0 6 votes vote down vote up
@Override
public void init(ServletConfig config) throws ServletException {
    super.init(config);
    try {
        SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
        initializeApplicationConfiguration();
        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);
    }
}
 
Example 2
Source File: CloudStartupServlet.java    From cosmic with Apache License 2.0 6 votes vote down vote up
@Override
public void init(final ServletConfig config) throws ServletException {
    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();

                final TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.CLOUD_DB);
                try {
                    ComponentContext.initComponentsLifeCycle();
                } finally {
                    txn.close();
                }
            }
        }
    }, 0, 1000);
}
 
Example 3
Source File: CloudStartupServlet.java    From cloudstack with Apache License 2.0 6 votes vote down vote up
@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);
}
 
Example 4
Source File: LoginRequestLtiServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 5
Source File: ExampleRichlet.java    From zkspringboot with Apache License 2.0 4 votes vote down vote up
@Override
public void init(RichletConfig config) {
	super.init(config);
	SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getWebApp().getServletContext());
}
 
Example 6
Source File: RestServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 7
Source File: ConsoleProxyServlet.java    From cloudstack with Apache License 2.0 4 votes vote down vote up
@Override
public void init(ServletConfig config) throws ServletException {
    SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
    s_keysMgr = _keysMgr;
}
 
Example 8
Source File: ApiServlet.java    From cosmic with Apache License 2.0 4 votes vote down vote up
@Override
public void init(final ServletConfig config) throws ServletException {
    SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
}
 
Example 9
Source File: LaunchLearnerUrlServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 10
Source File: NotificationServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 11
Source File: LessonManagerServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 12
Source File: ForgotPasswordServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 13
Source File: CompleteItemServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 14
Source File: LessonOrderServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 15
Source File: LAMSUploadServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 16
Source File: YggdrasilServlet.java    From authlib-agent with MIT License 4 votes vote down vote up
@Override
public void init() throws ServletException {
	SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, getServletContext());
}
 
Example 17
Source File: LearningDesignSVGServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 18
Source File: ApiServlet.java    From cloudstack with Apache License 2.0 4 votes vote down vote up
@Override
public void init(final ServletConfig config) throws ServletException {
    SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
}
 
Example 19
Source File: LogLessonMarkPushedToIntegrationsServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }
 
Example 20
Source File: RecalculateTotalMarksForLessonServlet.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
   public void init(ServletConfig config) throws ServletException {
super.init(config);
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
   }