public abstract class AbstractSpringPreparerFactory extends Object implements PreparerFactory
PreparerFactory
interface, obtaining the current Spring WebApplicationContext and delegating to
getPreparer(String, org.springframework.web.context.WebApplicationContext)
.getPreparer(String, org.springframework.web.context.WebApplicationContext)
,
SimpleSpringPreparerFactory
,
SpringBeanPreparerFactory
Constructor and Description |
---|
AbstractSpringPreparerFactory() |
Modifier and Type | Method and 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.
|
public ViewPreparer getPreparer(String name, Request context)
getPreparer
in interface PreparerFactory
protected abstract ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException
name
- the name of the preparercontext
- the current Spring WebApplicationContextTilesException
- in case of failure