Class SimpleSpringPreparerFactory
- java.lang.Object
- org.springframework.web.servlet.view.tiles3.AbstractSpringPreparerFactory
- org.springframework.web.servlet.view.tiles3.SimpleSpringPreparerFactory
- All Implemented Interfaces:
PreparerFactory
public class SimpleSpringPreparerFactory extends AbstractSpringPreparerFactory
TilesPreparerFactoryimplementation that expects preparer class names and builds preparer instances for those, creating them through the Spring ApplicationContext in order to apply Spring container callbacks and configured Spring BeanPostProcessors.- Since:
- 3.2
- Author:
- Juergen Hoeller
- See Also:
SpringBeanPreparerFactory
Constructor Summary
Constructors Constructor Description SimpleSpringPreparerFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ViewPreparergetPreparer(String name, WebApplicationContext context)Obtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.Methods inherited from class org.springframework.web.servlet.view.tiles3.AbstractSpringPreparerFactory
getPreparer
Constructor Detail
SimpleSpringPreparerFactory
public SimpleSpringPreparerFactory()
Method Detail
getPreparer
protected ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException
Description copied from class:AbstractSpringPreparerFactoryObtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.- Specified by:
getPreparerin classAbstractSpringPreparerFactory- Parameters:
name- the name of the preparercontext- the current Spring WebApplicationContext- Returns:
- the preparer instance
- Throws:
TilesException- in case of failure