org.springframework.web.servlet.config
Class MvcViewControllers

java.lang.Object
  extended by org.springframework.context.config.AbstractFeatureSpecification
      extended by org.springframework.web.servlet.config.MvcViewControllers
All Implemented Interfaces:
FeatureSpecification, SourceAwareSpecification

public final class MvcViewControllers
extends AbstractFeatureSpecification

Specifies the Spring MVC "View Controllers" container feature. The feature allows specifying one or more path to view name mappings. It sets up the following fine-grained configuration:

Since:
3.1
Author:
Rossen Stoyanchev, Chris Beams

Field Summary
 
Fields inherited from class org.springframework.context.config.AbstractFeatureSpecification
executorType
 
Constructor Summary
MvcViewControllers(String path)
           
MvcViewControllers(String path, String viewName)
           
 
Method Summary
protected  void doValidate(ProblemCollector problems)
           
 MvcViewControllers viewController(String path)
           
 MvcViewControllers viewController(String path, String viewName)
           
 
Methods inherited from class org.springframework.context.config.AbstractFeatureSpecification
execute, source, source, sourceName, sourceName, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MvcViewControllers

public MvcViewControllers(String path)

MvcViewControllers

public MvcViewControllers(String path,
                          String viewName)
Method Detail

viewController

public MvcViewControllers viewController(String path)

viewController

public MvcViewControllers viewController(String path,
                                         String viewName)

doValidate

protected void doValidate(ProblemCollector problems)
Specified by:
doValidate in class AbstractFeatureSpecification