org.springframework.web.servlet.view.tiles2
Class SimpleSpringPreparerFactory
java.lang.Object
org.springframework.web.servlet.view.tiles2.AbstractSpringPreparerFactory
org.springframework.web.servlet.view.tiles2.SimpleSpringPreparerFactory
public class SimpleSpringPreparerFactory
- extends AbstractSpringPreparerFactory
Tiles2 org.apache.tiles.preparer.PreparerFactory
implementation
that expects preparer class names and builds preparer instances for those,
creating them through the Spring ApplicationContext in order to apply
Spring container callbacks and configured Spring BeanPostProcessors.
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
SpringBeanPreparerFactory
Field Summary |
private java.util.Map<java.lang.String,ViewPreparer> |
sharedPreparers
Cache of shared ViewPreparer instances: bean name --> bean instance |
Method Summary |
protected ViewPreparer |
getPreparer(java.lang.String name,
WebApplicationContext context)
Obtain a preparer instance for the given preparer name,
based on the given Spring WebApplicationContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sharedPreparers
private final java.util.Map<java.lang.String,ViewPreparer> sharedPreparers
- Cache of shared ViewPreparer instances: bean name --> bean instance
SimpleSpringPreparerFactory
public SimpleSpringPreparerFactory()
getPreparer
protected ViewPreparer getPreparer(java.lang.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 class AbstractSpringPreparerFactory
- Parameters:
name
- the name of the preparercontext
- the current Spring WebApplicationContext
- Returns:
- the preparer instance
- Throws:
TilesException
- in case of failure