public class BasicPreparerFactory extends java.lang.Object implements PreparerFactory
PreparerFactory.
This factory provides no contextual configuration. It
simply instantiates the named preparerInstance and returns it.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,ViewPreparer> |
preparers
Maps a preparer name to the instantiated preparer.
|
| Constructor and Description |
|---|
BasicPreparerFactory()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ViewPreparer |
createPreparer(java.lang.String name)
Creates a view preparer for the given name.
|
ViewPreparer |
getPreparer(java.lang.String name,
TilesRequestContext context)
Create a new instance of the named preparerInstance.
|
protected java.util.Map<java.lang.String,ViewPreparer> preparers
public ViewPreparer getPreparer(java.lang.String name, TilesRequestContext context)
getPreparer in interface PreparerFactoryname - the named preparerInstancecontext - current contextprotected ViewPreparer createPreparer(java.lang.String name)
name - The name of the preparer.