public class BasicPreparerFactory extends 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 Map<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(String name)
Creates a view preparer for the given name.
|
ViewPreparer |
getPreparer(String name,
org.apache.tiles.request.Request context)
Create a new instance of the named preparerInstance.
|
protected Map<String,ViewPreparer> preparers
public ViewPreparer getPreparer(String name, org.apache.tiles.request.Request context)
getPreparer
in interface PreparerFactory
name
- the named preparerInstancecontext
- current contextprotected ViewPreparer createPreparer(String name)
name
- The name of the preparer.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.