getResourceSettings().setResourceStreamLocator(new GeoServerResourceStreamLocator());
getResourceSettings().addStringResourceLoader(new GeoServerStringResourceLoader());
getResourceSettings().addStringResourceLoader(new ComponentStringResourceLoader());
getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(this.getClass()));
getResourceSettings().setPropertiesFactory(new PropertiesFactory(this) {
@Override
public Properties load(Class clazz, String path) {
if ( clazz == WicketTestApplication.class && path.startsWith(wtapath)) {
String newPath = path.replace( wtapath, gsapath );
return super.load( GeoServerApplication.class, newPath );