Class BasicPreparerFactory
java.lang.Object
org.apache.tiles.core.prepare.factory.BasicPreparerFactory
- All Implemented Interfaces:
- PreparerFactory
- Direct Known Subclasses:
- StrutsPreparerFactory
Default implementation of the 
PreparerFactory.
 This factory provides no contextual configuration.  It
 simply instantiates the named preparerInstance and returns it.- Since:
- Tiles 2.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Map<String,ViewPreparer> Maps a preparer name to the instantiated preparer.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ViewPreparercreatePreparer(String name) Creates a view preparer for the given name.getPreparer(String name, Request context) Create a new instance of the named preparerInstance.
- 
Field Details- 
preparersMaps a preparer name to the instantiated preparer.
 
- 
- 
Constructor Details- 
BasicPreparerFactorypublic BasicPreparerFactory()Constructor.
 
- 
- 
Method Details- 
getPreparerCreate a new instance of the named preparerInstance. This factory expects all names to be qualified class names.- Specified by:
- getPreparerin interface- PreparerFactory
- Parameters:
- name- the named preparerInstance
- context- current context
- Returns:
- ViewPreparer instance
 
- 
createPreparerCreates a view preparer for the given name.- Parameters:
- name- The name of the preparer.
- Returns:
- The created preparer.
 
 
-