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());
}
}
Aggregations