SourceForge.net Logo

de.mindmatters.faces.spring.context.servlet
Class FacesViewResolver

java.lang.Object
  extended byorg.springframework.context.support.ApplicationObjectSupport
      extended byorg.springframework.web.context.support.WebApplicationObjectSupport
          extended byorg.springframework.web.servlet.view.AbstractCachingViewResolver
              extended byorg.springframework.web.servlet.view.UrlBasedViewResolver
                  extended byde.mindmatters.faces.spring.context.servlet.FacesViewResolver
All Implemented Interfaces:
ApplicationContextAware, ViewResolver

public class FacesViewResolver
extends UrlBasedViewResolver

Convenience subclass of UrlBasedViewResolver that supports FacesExternalResourceView.

Author:
Andreas Kuhrwahl
See Also:
#createView(java.lang.String, java.util.Locale), UrlBasedViewResolver.setViewClass(java.lang.Class)

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
FacesViewResolver()
          Sets default viewClass to AbstractFacesView.
 
Method Summary
protected  AbstractUrlBasedView buildView(java.lang.String viewName)
          
protected  View createView(java.lang.String viewName, java.util.Locale locale)
          
protected  void handleView(AbstractUrlBasedView view)
          Hook method for subclasses for utilizing the created view.
protected  java.lang.Class requiredViewClass()
          
 
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver
getAttributesMap, getCacheKey, getViewClass, initApplicationContext, loadView, setAttributes, setAttributesMap, setContentType, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass
 
Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver
isCache, removeFromCache, resolveViewName, setCache
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesViewResolver

public FacesViewResolver()
Sets default viewClass to AbstractFacesView.

See Also:
UrlBasedViewResolver.setViewClass(java.lang.Class)
Method Detail

createView

protected final View createView(java.lang.String viewName,
                                java.util.Locale locale)
                         throws java.lang.Exception

Throws:
java.lang.Exception

requiredViewClass

protected java.lang.Class requiredViewClass()


buildView

protected final AbstractUrlBasedView buildView(java.lang.String viewName)
                                        throws java.lang.Exception

Throws:
java.lang.Exception

handleView

protected void handleView(AbstractUrlBasedView view)
Hook method for subclasses for utilizing the created view.

Parameters:
view - the created view

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG