public abstract class SiteApplication
extends org.apache.wicket.protocol.http.WebApplication
Component
for Threads that may not have access to WebRequest, and allow us to
get the instance from Spring instead. (since get()
would not work as that depends on a request thread)Modifier and Type | Field and Description |
---|---|
static Calendar |
LAST_START_TIME
Allow keeping track of when the instance was rebooted.
|
Constructor and Description |
---|
SiteApplication() |
Modifier and Type | Method and Description |
---|---|
static SiteApplication |
get() |
protected String |
getAuthFailureHandlerDefaultBeanName()
Default Spring Config bean name
|
protected String |
getAuthStrategyDefaultBeanName()
Default Spring Config bean name
|
Properties |
getBuildProperties()
Build specific properties derived from build.properties
|
org.apache.wicket.util.resource.locator.ResourceStreamLocator |
getFileResourceStreamLocator(javax.servlet.ServletContext sc)
If Path of Markup is different from standard package path convention, then this
will tell wicket where to find the paths to the pages/modules.
|
protected String |
getResourceFolderBeanName()
Default Spring Config bean name
|
void |
informAdmin(String subject,
String content) |
void |
init() |
void |
initAllRequestCycleUsers(org.apache.wicket.RequestCycle rc) |
protected void |
initDI()
Dependency Injection init of Application wide stuff
|
protected void |
initEnd(org.apache.wicket.Application application)
Override to insert anything at End of init process.
Any override should call super.initEnd() (unless you explicitly want to disable all IOnApplicationStartup services)Any override should NEVER call this#init() - infinite recursion |
protected void |
initStart(org.apache.wicket.Application application)
Override to insert anything at Start of init process
Any override should call super.initStart() (unless you explicitly want to disable all IOnApplicationStartup services)Any override should NEVER call this#init() - infinite recursion
Mount Resolution Strategy : If there is an XML entry defined for mounting that also has an annotated entry for path. |
protected org.apache.wicket.request.IRequestCycleProcessor |
newRequestCycleProcessor() |
protected org.apache.wicket.protocol.http.WebRequest |
newWebRequest(javax.servlet.http.HttpServletRequest servletRequest)
Deprecated.
|
void |
setBuildProperties(Properties buildProperties)
Build specific properties derived from build.properties
|
protected void |
tweakMarkupCacheStreamProvider()
The
DefaultMarkupResourceStreamProvider.getMarkupResourceStream(org.apache.wicket.MarkupContainer, java.lang.Class<?>) ; derives the path
from the "Class> containerClass" and passes it to the IResourceStreamLocator.locate(java.lang.Class<?>, java.lang.String) method.It also passes the MarkupContainer class to the IResourceStreamLocator.locate(java.lang.Class<?>, java.lang.String) method. |
addIgnoreMountPath, getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getSessionAttributePrefix, getWicketFilter, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newRequestCycle, newSession, newSession, newSession, newSessionStore, newWebResponse, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount
addComponentInitializationListener, addComponentInstantiationListener, addComponentOnAfterRenderListener, addPostComponentOnBeforeRenderListener, addPreComponentOnBeforeRenderListener, addRenderHeadListener, configure, decorateHeaderResponse, destroy, exists, fireComponentInitializationListeners, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getHomePage, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newConverterLocator, newRequestCycle, newRequestLogger, notifyRenderHeadListener, onDestroy, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removePostComponentOnBeforeRenderListener, removePreComponentOnBeforeRenderListener, removeRenderHeadListener, set, setHeaderResponseDecorator, setMetaData, unset
public static final Calendar LAST_START_TIME
@PostConstruct protected void initDI()
protected String getResourceFolderBeanName()
protected String getAuthStrategyDefaultBeanName()
protected String getAuthFailureHandlerDefaultBeanName()
protected void initStart(org.apache.wicket.Application application)
IOnApplicationStartup
services)this#init()
- infinite recursion
protected void initEnd(org.apache.wicket.Application application)
IOnApplicationStartup
services)this#init()
- infinite recursionpublic final void init()
init
in class org.apache.wicket.protocol.http.WebApplication
protected void tweakMarkupCacheStreamProvider()
DefaultMarkupResourceStreamProvider.getMarkupResourceStream(org.apache.wicket.MarkupContainer, java.lang.Class<?>)
; derives the path
from the "Class> containerClass" and passes it to the IResourceStreamLocator.locate(java.lang.Class<?>, java.lang.String)
method.IResourceStreamLocator.locate(java.lang.Class<?>, java.lang.String)
method. This class is useless in our case,
and there is more value in getting the actual "Class> containerClass". Simple swap which class is passed to the locate method.public org.apache.wicket.util.resource.locator.ResourceStreamLocator getFileResourceStreamLocator(javax.servlet.ServletContext sc)
sc
- as ServletContext
protected org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
newRequestCycleProcessor
in class org.apache.wicket.protocol.http.WebApplication
public void initAllRequestCycleUsers(org.apache.wicket.RequestCycle rc)
public Properties getBuildProperties()
public void setBuildProperties(Properties buildProperties)
@Deprecated protected org.apache.wicket.protocol.http.WebRequest newWebRequest(javax.servlet.http.HttpServletRequest servletRequest)
newWebRequest
in class org.apache.wicket.protocol.http.WebApplication
public static SiteApplication get()
Copyright © 2018. All rights reserved.