use of org.apache.wicket.Application in project wicket-dashboard by decebals.
the class DashboardSettings method get.
/**
* Retrieves the instance of settings object.
*
* @return settings instance
*/
public static DashboardSettings get() {
Application application = Application.get();
DashboardSettings settings = application.getMetaData(KEY);
if (settings == null) {
synchronized (application) {
settings = application.getMetaData(KEY);
if (settings == null) {
settings = new DashboardSettings();
application.setMetaData(KEY, settings);
}
}
}
return application.getMetaData(KEY);
}
Aggregations