Search in sources :

Example 1 with IScreenShareApplication

use of org.bigbluebutton.app.screenshare.IScreenShareApplication in project bigbluebutton by bigbluebutton.

the class HttpTunnelStreamController method getScreenShareApplication.

private IScreenShareApplication getScreenShareApplication() {
    //Get the servlet context
    ServletContext ctx = getServletContext();
    //Grab a reference to the application context
    ApplicationContext appCtx = (ApplicationContext) ctx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
    //Get the bean holding the parameter
    IScreenShareApplication manager = (IScreenShareApplication) appCtx.getBean("screenShareApplication");
    if (manager != null) {
        log.debug("Got the IScreenShareApplication context: *****");
    }
    return manager;
}
Also used : WebApplicationContext(org.springframework.web.context.WebApplicationContext) ApplicationContext(org.springframework.context.ApplicationContext) IScreenShareApplication(org.bigbluebutton.app.screenshare.IScreenShareApplication) ServletContext(javax.servlet.ServletContext)

Aggregations

ServletContext (javax.servlet.ServletContext)1 IScreenShareApplication (org.bigbluebutton.app.screenshare.IScreenShareApplication)1 ApplicationContext (org.springframework.context.ApplicationContext)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1