Class SpringBeanPreparerFactory
- java.lang.Object
- org.springframework.web.servlet.view.tiles3.AbstractSpringPreparerFactory
- org.springframework.web.servlet.view.tiles3.SpringBeanPreparerFactory
- All Implemented Interfaces:
PreparerFactory
public class SpringBeanPreparerFactory extends AbstractSpringPreparerFactory
Tilesorg.apache.tiles.preparer.PreparerFactory
implementation that expects preparer bean names and obtains preparer beans from the Spring ApplicationContext. The full bean creation process will be in the control of the Spring application context in this case, allowing for the use of scoped beans etc.- Since:
- 3.2
- Author:
- Juergen Hoeller
- See Also:
SimpleSpringPreparerFactory
Constructor Summary
Constructors Constructor Description SpringBeanPreparerFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ViewPreparer
getPreparer(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
SpringBeanPreparerFactory
public SpringBeanPreparerFactory()
Method Detail
getPreparer
protected ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException
Description copied from class:AbstractSpringPreparerFactory
Obtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.- Specified by:
getPreparer
in classAbstractSpringPreparerFactory
- Parameters:
name
- the name of the preparercontext
- the current Spring WebApplicationContext- Returns:
- the preparer instance
- Throws:
TilesException
- in case of failure