org.apache.struts2.tiles
Class StrutsTilesAnnotationProcessor
java.lang.Object
org.apache.struts2.tiles.StrutsTilesAnnotationProcessor
public class StrutsTilesAnnotationProcessor
- extends Object
Processes tiles annotations to create Definition
s and
Attribute
s in a way as close to tiles.xml
as possible.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrutsTilesAnnotationProcessor
public StrutsTilesAnnotationProcessor()
findAnnotation
public TilesDefinition findAnnotation(Object action,
String tileName)
- Search strategy is as follows:
- Parameters:
action
- Annotated action.tileName
- Tilename to search for. May be null in some circumstances.
- Returns:
TilesDefinition
buildTilesDefinition
public org.apache.tiles.Definition buildTilesDefinition(String tileName,
TilesDefinition tilesDefinition)
- Builds a
Definition
based on given TilesDefinition
with
given name.
- Parameters:
tileName
- name for resulting Definition
.tilesDefinition
- TilesDefinition
to process.
- Returns:
Definition
represented by given TilesDefinition
.
buildTemplateAttribute
protected org.apache.tiles.Attribute buildTemplateAttribute(TilesDefinition tilesDef)
buildPutAttribute
protected org.apache.tiles.Attribute buildPutAttribute(TilesPutAttribute putAttribute)
buildPutListAttribute
protected org.apache.tiles.Attribute buildPutListAttribute(TilesPutListAttribute putListAttribute)
buildAddAttribute
protected org.apache.tiles.Attribute buildAddAttribute(TilesAddAttribute addAttribute)
buildAddListAttribute
protected org.apache.tiles.Attribute buildAddListAttribute(TilesAddListAttribute addListAttribute)
getValueOrNull
protected String getValueOrNull(String value)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.