List of usage examples for org.apache.wicket Application getApplicationKeys
public static Set<String> getApplicationKeys()
From source file:org.artifactory.webapp.WebappServiceImpl.java
License:Open Source License
@Override public void rebuildSiteMap() { // get the first application key (in aol it will not work!) ArtifactoryApplication app = (ArtifactoryApplication) Application .get(Application.getApplicationKeys().iterator().next()); // we must attach the application to the current thread in order to perform wicket operation ThreadContext.setApplication(app);//from www . j a va2s . c o m try { app.rebuildSiteMap(); } finally { ThreadContext.detach(); } }