Search in sources :

Example 6 with IApplication

use of org.apache.openmeetings.IApplication in project openmeetings by apache.

the class ApplicationHelper method ensureApplication.

public static IApplication ensureApplication() {
    if (Application.exists()) {
        return (IApplication) Application.get();
    }
    synchronized (SYNC_OBJ) {
        if (Application.exists()) {
            return (IApplication) Application.get();
        }
        WebApplication app = createApp((WebApplication) Application.get(getWicketApplicationName()));
        LabelDao.initLanguageMap();
        if (app != null) {
            if (!isInitComplete()) {
                initApp(app);
            }
            ThreadContext.setApplication(app);
        }
        return (IApplication) Application.get(getWicketApplicationName());
    }
}
Also used : IApplication(org.apache.openmeetings.IApplication) WebApplication(org.apache.wicket.protocol.http.WebApplication)

Aggregations

IApplication (org.apache.openmeetings.IApplication)6 Date (java.util.Date)2 WebApplication (org.apache.wicket.protocol.http.WebApplication)2 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 IWebSession (org.apache.openmeetings.IWebSession)1 MailMessage (org.apache.openmeetings.db.entity.basic.MailMessage)1 Appointment (org.apache.openmeetings.db.entity.calendar.Appointment)1 User (org.apache.openmeetings.db.entity.user.User)1 IcalHandler (org.apache.openmeetings.util.mail.IcalHandler)1 Application (org.apache.wicket.Application)1 MockWebResponse (org.apache.wicket.mock.MockWebResponse)1 WebSession (org.apache.wicket.protocol.http.WebSession)1 MockHttpServletRequest (org.apache.wicket.protocol.http.mock.MockHttpServletRequest)1 MockHttpSession (org.apache.wicket.protocol.http.mock.MockHttpSession)1 ServletWebRequest (org.apache.wicket.protocol.http.servlet.ServletWebRequest)1 RequestCycle (org.apache.wicket.request.cycle.RequestCycle)1 RequestCycleContext (org.apache.wicket.request.cycle.RequestCycleContext)1