org.jboss.weld.wicket
Class WeldApplication

java.lang.Object
  extended by org.apache.wicket.Application
      extended by org.apache.wicket.protocol.http.WebApplication
          extended by org.jboss.weld.wicket.WeldApplication

public abstract class WeldApplication
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 WeldComponentInstantiationListener, and override the two methods below to return the RequestCycle and IRequestCycleProcessor subclasses specific to Weld, or your subclasses of those classes.

Author:
cpopetz, pmuir
See Also:
WebApplication, WeldWebRequestCycleProcessor, WeldRequestCycle

Field Summary
 
Fields inherited from class org.apache.wicket.Application
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT
 
Constructor Summary
WeldApplication()
           
 
Method Summary
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 Weld-specific request cycle
protected  org.apache.wicket.request.IRequestCycleProcessor newRequestCycleProcessor()
          Override to return our Weld-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
addComponentInstantiationListener, addComponentOnAfterRenderListener, addPostComponentOnBeforeRenderListener, addPreComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, 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, setMetaData, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeldApplication

public WeldApplication()
Method Detail

internalInit

protected void internalInit()
Add our component instantiation listener

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

newRequestCycleProcessor

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

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

newRequestCycle

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

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


Copyright © 2008-2009 Seam Framework. All Rights Reserved.