public class ApplicationDebugSettingsPlugin extends Object implements Serializable
ApplicationDebugSettingsPlugin you enable the appropriate settings for
the development mode.
ApplicationDebugSettingsPlugin is very simple. You only have to add a
one line to the init method:
public class MyApplication extends WebApplication
{
@Override
protected void init()
{
super.init();
new ApplicationDebugSettingsPlugin().install(this);
}
}
| Constructor and Description |
|---|
ApplicationDebugSettingsPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationDebugSettingsPlugin |
get()
Returns the
ApplicationDebugSettingsPlugin instance that has been installed in the
current Wicket application. |
ApplicationDebugSettingsPlugin |
install(org.apache.wicket.protocol.http.WebApplication application)
Install this plugin to the given
WebApplication. |
protected void |
onConfigure(org.apache.wicket.protocol.http.WebApplication application)
Factory method for that can be used to add additional configuration to this plugin.
|
void |
set(org.apache.wicket.Application app,
ApplicationDebugSettingsPlugin plugin)
Sets the specified
ApplicationDebugSettingsPlugin in the application metadata. |
public static ApplicationDebugSettingsPlugin get()
ApplicationDebugSettingsPlugin instance that has been installed in the
current Wicket application. This is a convenience method that only works within a Wicket
thread, and it assumes that install() has already been called.ApplicationDebugSettingsPlugin instance that has been installed in the
current Wicket application.IllegalStateException - is thrown if no Wicket application bound to the current thread, or if a
DebugSettingsPlugin has not been installed.public ApplicationDebugSettingsPlugin install(org.apache.wicket.protocol.http.WebApplication application)
WebApplication.application - the application to install.protected void onConfigure(org.apache.wicket.protocol.http.WebApplication application)
Overrides should call super.onConfigure().
application - the applicationpublic void set(org.apache.wicket.Application app,
ApplicationDebugSettingsPlugin plugin)
ApplicationDebugSettingsPlugin in the application metadata.app - the appplugin - the pluginCopyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.