public final class ComposeStackUtil
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
COMPOSE_STACK_ATTRIBUTE_NAME |
The name of the attribute that holds the compose stack.
|
Modifier and Type | Method | Description |
---|---|---|
static java.lang.Object |
findAncestorWithClass(java.util.Deque<java.lang.Object> composeStack,
java.lang.Class<?> clazz) |
Finds the first ancestor in the stack, that is assignable to the given class.
|
static java.util.Deque<java.lang.Object> |
getComposeStack(org.apache.tiles.request.Request request) |
Returns the current compose stack, or creates a new one if not present.
|
public static final java.lang.String COMPOSE_STACK_ATTRIBUTE_NAME
public static java.lang.Object findAncestorWithClass(java.util.Deque<java.lang.Object> composeStack, java.lang.Class<?> clazz)
composeStack
- The compose stack to evaluate.clazz
- The class to check.public static java.util.Deque<java.lang.Object> getComposeStack(org.apache.tiles.request.Request request)
request
- The request.Copyright © 2018. All rights reserved.