public interface ExpressionResolver
ModelType.EXPRESSION
expressions in a ModelNode
.Modifier and Type | Field and Description |
---|---|
static ExpressionResolver |
DEFAULT
Deprecated.
use
TEST_RESOLVER for test cases |
static Pattern |
EXPRESSION_PATTERN
A
Pattern that can be used to identify strings that include expression syntax |
static ExpressionResolver |
REJECTING
An expression resolver that throws an
OperationFailedException if any expressions are found. |
static ExpressionResolver |
TEST_RESOLVER
An
ExpressionResolver suitable for test cases that simply calls ModelNode.resolve() . |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
resolveExpressions(org.jboss.dmr.ModelNode node)
Resolves any expressions in the passed in ModelNode.
|
static final Pattern EXPRESSION_PATTERN
Pattern
that can be used to identify strings that include expression syntaxstatic final ExpressionResolver TEST_RESOLVER
ExpressionResolver
suitable for test cases that simply calls ModelNode.resolve()
.
Should not be used for production code as it does not support resolution from a security vault.@Deprecated static final ExpressionResolver DEFAULT
TEST_RESOLVER
for test casesExpressionResolver
that simply calls ModelNode.resolve()
.
Should not be used for production code as it does not support resolution from a security vault.static final ExpressionResolver REJECTING
OperationFailedException
if any expressions are found.
Intended for use with APIs where an ExpressionResolver
is required but the caller requires
that all expression have already been resolved.org.jboss.dmr.ModelNode resolveExpressions(org.jboss.dmr.ModelNode node) throws OperationFailedException
node
- the ModelNode containing expressions.OperationFailedException
- if there is a value of type ModelType.EXPRESSION
in the node tree and
there is no system property or environment variable that matches the expression, or if a security
manager exists and its checkPermission
method doesn't allow
access to the relevant system property or environment variableCopyright © 2013 JBoss by Red Hat. All rights reserved.