Class AbstractSpringPreparerFactory
- java.lang.Object
- org.springframework.web.servlet.view.tiles3.AbstractSpringPreparerFactory
- All Implemented Interfaces:
PreparerFactory
- Direct Known Subclasses:
SimpleSpringPreparerFactory
,SpringBeanPreparerFactory
public abstract class AbstractSpringPreparerFactory extends Object implements PreparerFactory
Abstract implementation of the Tilesorg.apache.tiles.preparer.PreparerFactory
interface, obtaining the current Spring WebApplicationContext and delegating togetPreparer(String, org.springframework.web.context.WebApplicationContext)
.- Since:
- 3.2
- Author:
- Juergen Hoeller
- See Also:
getPreparer(String, org.springframework.web.context.WebApplicationContext)
,SimpleSpringPreparerFactory
,SpringBeanPreparerFactory
Constructor Summary
Constructors Constructor Description AbstractSpringPreparerFactory()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ViewPreparer
getPreparer(String name, Request context)
protected abstract ViewPreparer
getPreparer(String name, WebApplicationContext context)
Obtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.
Constructor Detail
AbstractSpringPreparerFactory
public AbstractSpringPreparerFactory()
Method Detail
getPreparer
public ViewPreparer getPreparer(String name, Request context)
- Specified by:
getPreparer
in interfacePreparerFactory
getPreparer
protected abstract ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException
Obtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.- Parameters:
name
- the name of the preparercontext
- the current Spring WebApplicationContext- Returns:
- the preparer instance
- Throws:
TilesException
- in case of failure