org.jasig.springframework.web.portlet.context
Class ContribDispatcherPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.springframework.web.portlet.GenericPortletBean
          extended by org.springframework.web.portlet.FrameworkPortlet
              extended by org.springframework.web.portlet.DispatcherPortlet
                  extended by org.jasig.springframework.web.portlet.context.ContribDispatcherPortlet
All Implemented Interfaces:
EventListener, javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.EnvironmentAware

public class ContribDispatcherPortlet
extends org.springframework.web.portlet.DispatcherPortlet

Extension to DispatcherPortlet that adds support for:

Author:
Eric Dalquist

Field Summary
static String PORTLET_APPLICATION_CONTEXT_ATTRIBUTE
          Request attribute to hold the current portlet application context.
 
Fields inherited from class org.springframework.web.portlet.DispatcherPortlet
ACTION_EXCEPTION_RENDER_PARAMETER, ACTION_EXCEPTION_SESSION_ATTRIBUTE, DEFAULT_VIEW_RENDERER_URL, HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_MAPPING_BEAN_NAME, MULTIPART_RESOLVER_BEAN_NAME, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, VIEW_RESOLVER_BEAN_NAME
 
Fields inherited from class org.springframework.web.portlet.FrameworkPortlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, DEFAULT_USERINFO_ATTRIBUTE_NAMES, PORTLET_CONTEXT_PREFIX
 
Fields inherited from class org.springframework.web.portlet.GenericPortletBean
logger
 
Constructor Summary
ContribDispatcherPortlet()
           
 
Method Summary
protected  org.springframework.context.ApplicationContext createPortletApplicationContext(org.springframework.context.ApplicationContext parent)
          Uses PortletApplicationContextUtils2.getPortletApplicationContext(PortletContext) to see if the portlet application level context has been loaded.
 
Methods inherited from class org.springframework.web.portlet.DispatcherPortlet
checkMultipart, createDefaultStrategy, doActionService, doDispatch, doEventService, doRender, doRenderService, doResourceService, exposeActionException, getDefaultStrategies, getDefaultStrategy, getHandler, getHandlerAdapter, getMultipartResolver, initStrategies, noHandlerFound, onRefresh, processHandlerException, processHandlerException, render, resolveViewName, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers, setForwardActionException, setForwardEventException, setViewRendererUrl
 
Methods inherited from class org.springframework.web.portlet.FrameworkPortlet
buildLocaleContext, destroy, doDispatch, getContextClass, getContextConfigLocation, getNamespace, getPortletApplicationContext, getPortletContextAttributeName, getTitle, getUsernameForRequest, initFrameworkPortlet, initPortletApplicationContext, initPortletBean, onApplicationEvent, postProcessPortletApplicationContext, processAction, processEvent, processRequest, refresh, serveResource, setContextClass, setContextConfigLocation, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritable, setUserinfoUsernameAttributes
 
Methods inherited from class org.springframework.web.portlet.GenericPortletBean
addRequiredProperty, getPortletContext, getPortletName, init, initBeanWrapper, setEnvironment
 
Methods inherited from class javax.portlet.GenericPortlet
doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTLET_APPLICATION_CONTEXT_ATTRIBUTE

public static final String PORTLET_APPLICATION_CONTEXT_ATTRIBUTE
Request attribute to hold the current portlet application context. Otherwise only the global web portlet context is obtainable by tags etc.

See Also:
PortletRequestContextUtils.getPortletApplicationContext(javax.portlet.PortletRequest)
Constructor Detail

ContribDispatcherPortlet

public ContribDispatcherPortlet()
Method Detail

createPortletApplicationContext

protected org.springframework.context.ApplicationContext createPortletApplicationContext(org.springframework.context.ApplicationContext parent)
Uses PortletApplicationContextUtils2.getPortletApplicationContext(PortletContext) to see if the portlet application level context has been loaded. The portlet applications's context is then used as the parent for the portlet's context.

Overrides:
createPortletApplicationContext in class org.springframework.web.portlet.FrameworkPortlet


Copyright © 2013 Jasig. All Rights Reserved.