org.jboss.seam.wicket
Class SeamApplication

java.lang.Object
  extended by org.apache.wicket.Application
      extended by org.apache.wicket.protocol.http.WebApplication
          extended by org.jboss.seam.wicket.SeamApplication

public abstract class SeamApplication
extends org.apache.wicket.protocol.http.WebApplication

A convenience subclass of wicket's WebApplication which adds the hooks necessary to use JSR-299 injections in wicket components, as well as manage JSR-299 conversation scopes with Wicket page metadata. If you have your own WebApplication subclass, and can't subclass this class, you just need to do the three things that this class does, i.e. register the SeamComponentInstantiationListener, and override the two methods below to return the RequestCycle and IRequestCycleProcessor subclasses specific to Seam, or your subclasses of those classes.

Author:
cpopetz, pmuir, ivaynberg
See Also:
WebApplication, SeamWebRequestCycleProcessor, SeamRequestCycle

Field Summary
 
Fields inherited from class org.apache.wicket.Application
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT
 
Constructor Summary
SeamApplication()
           
 
Method Summary
protected  Class<? extends SeamWebRequestCycleProcessor> getWebRequestCycleProcessorClass()
           
protected  void internalInit()
          Add our component instantiation listener
 org.apache.wicket.RequestCycle newRequestCycle(org.apache.wicket.Request request, org.apache.wicket.Response response)
          Override to return our Seam-specific request cycle
protected  org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
          Override to return our Seam-specific request cycle processor
 
Methods inherited from class org.apache.wicket.protocol.http.WebApplication
addIgnoreMountPath, get, getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getSessionAttributePrefix, getWicketFilter, init, internalDestroy, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newSession, newSession, newSession, newSessionStore, newWebRequest, newWebResponse, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount
 
Methods inherited from class org.apache.wicket.Application
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamApplication

public SeamApplication()
Method Detail

internalInit

protected void internalInit()
Add our component instantiation listener

Overrides:
internalInit in class org.apache.wicket.protocol.http.WebApplication
See Also:
SeamComponentInstantiationListener

getWebRequestCycleProcessorClass

protected Class<? extends SeamWebRequestCycleProcessor> getWebRequestCycleProcessorClass()

newRequestCycleProcessor

protected org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
Override to return our Seam-specific request cycle processor

Overrides:
newRequestCycleProcessor in class org.apache.wicket.protocol.http.WebApplication
See Also:
SeamWebRequestCycleProcessor

newRequestCycle

public org.apache.wicket.RequestCycle newRequestCycle(org.apache.wicket.Request request,
                                                      org.apache.wicket.Response response)
Override to return our Seam-specific request cycle

Overrides:
newRequestCycle in class org.apache.wicket.protocol.http.WebApplication
See Also:
SeamRequestCycle


Copyright © 2011 Seam Framework. All Rights Reserved.