|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.renderer.impl.BasicRendererFactory
public class BasicRendererFactory
Basic renderer factory implementation.
| Field Summary | |
|---|---|
protected TilesApplicationContext |
applicationContext
The Tiles application context. |
protected AttributeEvaluatorFactory |
attributeEvaluatorFactory
The attribute evaluator. |
protected TilesContainer |
container
The Tiles container. |
protected TilesRequestContextFactory |
contextFactory
The Tiles context factory. |
static String |
DEFAULT_RENDERER_CLASS_NAME
Deprecated. Do not use, the default renderer class should be determined when building the container. |
static String |
DEFAULT_RENDERER_INIT_PARAM
The default renderer init parameter. |
protected static Map<String,String> |
DEFAULT_TYPE_2_RENDERER
The default renderer name/renderer class map. |
protected AttributeRenderer |
defaultRenderer
The default renderer. |
protected Map<String,AttributeRenderer> |
renderers
The renderer name/renderer map. |
static String |
TYPE_RENDERERS_INIT_PARAM
The type renderers init parameter name. |
| Constructor Summary | |
|---|---|
BasicRendererFactory()
Constructor. |
|
| Method Summary | |
|---|---|
AttributeRenderer |
getRenderer(String name)
Returns a renderer by its name. |
void |
init(Map<String,String> parameters)
Initialize the renderer factory. |
protected void |
initializeRenderer(AttributeRenderer renderer)
Initialize a renderer, by injecting dependencies. |
void |
registerRenderer(String name,
AttributeRenderer renderer)
Registers a renderer. |
void |
setApplicationContext(TilesApplicationContext applicationContext)
Sets the Tiles application context. |
void |
setAttributeEvaluatorFactory(AttributeEvaluatorFactory attributeEvaluatorFactory)
Sets the attribute evaluator factory. |
void |
setContainer(TilesContainer container)
Sets the Tiles container. |
void |
setDefaultRenderer(AttributeRenderer renderer)
Sets the default renderer. |
void |
setRequestContextFactory(TilesRequestContextFactory contextFactory)
Sets the Tiles request context factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_RENDERERS_INIT_PARAM
public static final String DEFAULT_RENDERER_INIT_PARAM
public static final String DEFAULT_RENDERER_CLASS_NAME
protected static final Map<String,String> DEFAULT_TYPE_2_RENDERER
protected TilesRequestContextFactory contextFactory
protected TilesApplicationContext applicationContext
protected TilesContainer container
protected AttributeEvaluatorFactory attributeEvaluatorFactory
protected Map<String,AttributeRenderer> renderers
protected AttributeRenderer defaultRenderer
| Constructor Detail |
|---|
public BasicRendererFactory()
| Method Detail |
|---|
public void init(Map<String,String> parameters)
init in interface RendererFactoryparameters - The parameters for the initialization.public AttributeRenderer getRenderer(String name)
getRenderer in interface RendererFactoryname - The name of the renderer.
public void setDefaultRenderer(AttributeRenderer renderer)
renderer - The default renderer.
public void registerRenderer(String name,
AttributeRenderer renderer)
name - The name of the renderer.renderer - The renderer to register.public void setContainer(TilesContainer container)
setContainer in interface TilesContainerAwarecontainer - The Tiles container.public void setAttributeEvaluatorFactory(AttributeEvaluatorFactory attributeEvaluatorFactory)
setAttributeEvaluatorFactory in interface AttributeEvaluatorFactoryAwareattributeEvaluatorFactory - The attribute evaluator factory to use.public void setRequestContextFactory(TilesRequestContextFactory contextFactory)
setRequestContextFactory in interface TilesRequestContextFactoryAwarecontextFactory - The Tiles context factory.public void setApplicationContext(TilesApplicationContext applicationContext)
setApplicationContext in interface TilesApplicationContextAwareapplicationContext - The Tiles application context.protected void initializeRenderer(AttributeRenderer renderer)
renderer - The renderer to initialize.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||