public interface ExpressionResolver
ModelType.EXPRESSION
expressions in a ModelNode
.Modifier and Type | Field and Description |
---|---|
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 |
SIMPLE
An
ExpressionResolver that can only resolve from system properties
and environment variables. |
static ExpressionResolver |
SIMPLE_LENIENT
An expression resolver that will not throw an
OperationFailedException when it encounters an
unresolvable expression, instead simply returning that expression. |
static ExpressionResolver |
TEST_RESOLVER
An
ExpressionResolver suitable for test cases that can only resolve from system properties
and environment variables. |
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 SIMPLE
ExpressionResolver
that can only resolve from system properties
and environment variables. Should not be used for most product resolution use cases as it does
not support resolution from a security vault.static final ExpressionResolver TEST_RESOLVER
ExpressionResolver
suitable for test cases that can only resolve from system properties
and environment variables.
Should not be used for production code as it does not support resolution from a security vault.static final ExpressionResolver SIMPLE_LENIENT
OperationFailedException
when it encounters an
unresolvable expression, instead simply returning that expression. Should not be used for most product
resolution use cases 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 © 2023 JBoss by Red Hat. All rights reserved.