Class AbstractSpringPreparerFactory
- java.lang.Object
-
- org.springframework.web.servlet.view.tiles2.AbstractSpringPreparerFactory
-
- All Implemented Interfaces:
org.apache.tiles.preparer.PreparerFactory
public abstract class AbstractSpringPreparerFactory extends Object implements org.apache.tiles.preparer.PreparerFactory
Abstract implementation of the Tiles2PreparerFactoryinterface, obtaining the current Spring WebApplicationContext and delegating togetPreparer(String, org.springframework.web.context.WebApplicationContext)- Since:
- 2.5
- 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 org.apache.tiles.preparer.ViewPreparergetPreparer(String name, org.apache.tiles.context.TilesRequestContext context)protected abstract org.apache.tiles.preparer.ViewPreparergetPreparer(String name, org.springframework.web.context.WebApplicationContext context)Obtain a preparer instance for the given preparer name, based on the given Spring WebApplicationContext.
-
-
-
Method Detail
-
getPreparer
public org.apache.tiles.preparer.ViewPreparer getPreparer(String name, org.apache.tiles.context.TilesRequestContext context) throws org.apache.tiles.TilesException
- Specified by:
getPreparerin interfaceorg.apache.tiles.preparer.PreparerFactory- Throws:
org.apache.tiles.TilesException
-
getPreparer
protected abstract org.apache.tiles.preparer.ViewPreparer getPreparer(String name, org.springframework.web.context.WebApplicationContext context) throws org.apache.tiles.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:
org.apache.tiles.TilesException- in case of failure
-
-