public class ExpressionResolverImpl extends Object implements ExpressionResolver
ExpressionResolver implementation.EXPRESSION_PATTERN, REJECTING, SIMPLE, SIMPLE_LENIENT, TEST_RESOLVER| Modifier | Constructor and Description |
|---|---|
protected |
ExpressionResolverImpl()
Creates a new
ExpressionResolverImpl configured to throw an OFE
when it encounters an unresolvable expression. |
protected |
ExpressionResolverImpl(boolean lenient)
Creates a new
ExpressionResolverImpl with configurable behavior as to whether it throws an OFE
when it encounters an unresolvable expression. |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.dmr.ModelNode |
resolveExpressions(org.jboss.dmr.ModelNode node)
Resolves any expressions in the passed in ModelNode.
|
protected void |
resolvePluggableExpression(org.jboss.dmr.ModelNode node)
Attempt to resolve the expression
encapsulated in the given node,
setting the value of node to the resolved string if successful, or leaving node unaltered
if the expression is not of a form resolvable by this method. |
protected ExpressionResolverImpl()
ExpressionResolverImpl configured to throw an OFE
when it encounters an unresolvable expression.protected ExpressionResolverImpl(boolean lenient)
ExpressionResolverImpl with configurable behavior as to whether it throws an OFE
when it encounters an unresolvable expression.lenient - false if an OFE should be thrown if an unresolvable expression is found; true
if the node should be left as an unresolved expressionpublic final org.jboss.dmr.ModelNode resolveExpressions(org.jboss.dmr.ModelNode node)
throws OperationFailedException
ExpressionResolverresolveExpressions in interface ExpressionResolvernode - 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 variableprotected void resolvePluggableExpression(org.jboss.dmr.ModelNode node)
throws OperationFailedException
encapsulated in the given node,
setting the value of node to the resolved string if successful, or leaving node unaltered
if the expression is not of a form resolvable by this method. When this method returns, the type of node
should either be ModelType.STRING if this method was able to resolve, or ModelType.EXPRESSION if
not.
The default implementation does nothing.
node - a node of type ModelType.EXPRESSIONOperationFailedException - if the expression in node is of a form that should be resolvable by this
method but some resolution failure occursCopyright © 2017 JBoss by Red Hat. All rights reserved.