Package org.apache.tiles.template
Class ComposeStackUtil
java.lang.Object
org.apache.tiles.template.ComposeStackUtil
Utilities to work with compose stacks.
- Since:
- 3.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe name of the attribute that holds to compose stack.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectfindAncestorWithClass(Deque<Object> composeStack, Class<?> clazz) Finds the first ancestor in the stack, that is assignable to the given class.getComposeStack(Request request) Returns the current compose stack, or creates a new one if not present.
- 
Field Details- 
COMPOSE_STACK_ATTRIBUTE_NAMEThe name of the attribute that holds to compose stack.- See Also:
 
 
- 
- 
Method Details- 
findAncestorWithClassFinds the first ancestor in the stack, that is assignable to the given class.- Parameters:
- composeStack- To compose stack to evaluate.
- clazz- The class to check.
- Returns:
- The first ancestor that is assignable to the class, or null if not found.
- Since:
- 3.0.0
 
- 
getComposeStackReturns the current compose stack, or creates a new one if not present.- Parameters:
- request- The request.
- Returns:
- The compose stack.
- Since:
- 3.0.0
 
 
-