public class DynamicLauncher extends SeleniumLauncher
WServlet.WServletEnvironment, WServlet.WServletHelperCOMPONENT_TO_LAUNCH_PARAM_KEY, SHOW_MEMORY_PROFILE_PARAM_KEYAJAX_TRIGGER_INTERNAL_PARAM_NAME, AJAX_TRIGGER_PARAM_NAME, DATA_LIST_PARAM_NAME, STATIC_RESOURCE_PARAM_NAME, TARGET_ID_PARAM_NAME| Constructor and Description |
|---|
DynamicLauncher() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getComponentToLaunchClassName()
Override to return the UI Registry Key - the class name is not needed because the instance has been added to the
UIRegistry in advance.
|
String |
getCurrentKey() |
WApplication |
getRegisteredComponent(String key)
Retrieve a registered component.
|
void |
registerComponent(String uniqueId,
WApplication componentToLaunch)
Register the component.
|
WApplication |
setComponentToLaunch(String uniqueId,
WApplication componentToLaunch)
Set the instance for the UI to launch.
|
void |
setCurrentKey(String key) |
createServletHelper, destroyContextForSession, getContextForSessioncreateUI, getUI, mainaddIndirectJar, createWebApp, getResourceDir, getThemeWebdocs, getUrl, getWebdocsDir, isRunning, isShutdownEnabled, registerServlets, run, service, service, shutDown, stopaddGenericHeaders, createInterceptorChain, handleError, init, serviceIntdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedpublic WApplication setComponentToLaunch(String uniqueId, WApplication componentToLaunch)
Set the instance for the UI to launch.
A null value will revert to the Default PlainLauncher parameter behavior.
uniqueId - the uniqueId to register the component.componentToLaunch - the WComponent to launch.public void registerComponent(String uniqueId, WApplication componentToLaunch)
uniqueId - the uniqueId to register the component.componentToLaunch - the WComponent to launch.public WApplication getRegisteredComponent(String key)
key - the key of the registered componentpublic void setCurrentKey(String key)
key - the current UI to be run by the launcher.public String getCurrentKey()
protected String getComponentToLaunchClassName()
getComponentToLaunchClassName in class PlainLauncherCopyright © 2024. All rights reserved.