Search in sources :

Example 1 with JnlpConfigurator

use of org.bigbluebutton.app.screenshare.server.servlet.JnlpConfigurator in project bigbluebutton by bigbluebutton.

the class JnlpFileHandler method getConfigurator.

private JnlpConfigurator getConfigurator() {
    JnlpConfigurator jnlpConfigurator = null;
    if (_servletContext != null) {
        //Grab a reference to the application context
        ApplicationContext appCtx = (ApplicationContext) _servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
        //Get the bean holding the parameter
        jnlpConfigurator = (JnlpConfigurator) appCtx.getBean("jnlpConfigurator");
        if (jnlpConfigurator != null) {
            log.debug("JnlpConfigurator initialized.");
        } else {
            log.error("Failed to initialize JnlpConfigurator.");
        }
    } else {
        log.error("Failed to initialize JnlpConfigurator. Context is undefined.");
    }
    return jnlpConfigurator;
}
Also used : WebApplicationContext(org.springframework.web.context.WebApplicationContext) ApplicationContext(org.springframework.context.ApplicationContext) JnlpConfigurator(org.bigbluebutton.app.screenshare.server.servlet.JnlpConfigurator)

Aggregations

JnlpConfigurator (org.bigbluebutton.app.screenshare.server.servlet.JnlpConfigurator)1 ApplicationContext (org.springframework.context.ApplicationContext)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1