public class SpringBeanPreparerFactory extends AbstractSpringPreparerFactory
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.SimpleSpringPreparerFactory
Constructor and Description |
---|
SpringBeanPreparerFactory() |
Modifier and Type | Method and Description |
---|---|
protected ViewPreparer |
getPreparer(String name,
WebApplicationContext context)
Obtain a preparer instance for the given preparer name,
based on the given Spring WebApplicationContext.
|
getPreparer
protected ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException
AbstractSpringPreparerFactory
getPreparer
in class AbstractSpringPreparerFactory
name
- the name of the preparercontext
- the current Spring WebApplicationContextTilesException
- in case of failure