org.apache.wicket.resource.loader.IStringResourceLoader Java Examples

The following examples show how to use org.apache.wicket.resource.loader.IStringResourceLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WicketApplicationBase.java    From webanno with Apache License 2.0 5 votes vote down vote up
protected void initNestedStringResourceLoader()
{
    List<IStringResourceLoader> loaders = new ArrayList<>(
            getResourceSettings().getStringResourceLoaders());
    NestedStringResourceLoader nestedLoader = new NestedStringResourceLoader(loaders,
            Pattern.compile("#\\(([^ ]*?)\\)"));
    getResourceSettings().getStringResourceLoaders().clear();
    getResourceSettings().getStringResourceLoaders().add(nestedLoader);
}
 
Example #2
Source File: OrienteerLocalizationModule.java    From Orienteer with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroy(OrienteerWebApplication app, ODatabaseDocument db) {
	Iterator<IStringResourceLoader> it = app.getResourceSettings().getStringResourceLoaders().iterator();
	while (it.hasNext()){
		if(it.next() instanceof OrienteerStringResourceLoader) it.remove();
	}
	app.getOrientDbSettings().getORecordHooks().remove(LocalizationInvalidationHook.class);
}