org.apache.tiles.preparer
Class BasicPreparerFactory
java.lang.Object
org.apache.tiles.preparer.BasicPreparerFactory
- All Implemented Interfaces:
- PreparerFactory
public class BasicPreparerFactory
- extends java.lang.Object
- implements PreparerFactory
Default implementation of the PreparerFactory
.
This factory provides no contextual configuration. It
simply instantiates the named preparerInstance and returns it.
- Since:
- Tiles 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
preparers
protected java.util.Map<java.lang.String,ViewPreparer> preparers
BasicPreparerFactory
public BasicPreparerFactory()
getPreparer
public ViewPreparer getPreparer(java.lang.String name,
TilesRequestContext context)
throws org.apache.tiles.TilesException
- Create a new instance of the named preparerInstance. This factory
expects all names to be qualified class names.
- Specified by:
getPreparer
in interface PreparerFactory
- Parameters:
name
- the named preparerInstancecontext
- current context
- Returns:
- ViewPreparer instance
- Throws:
NoSuchPreparerException
org.apache.tiles.TilesException
createPreparer
protected ViewPreparer createPreparer(java.lang.String name)
throws org.apache.tiles.TilesException
- Throws:
org.apache.tiles.TilesException