public class ExpressionResolverImpl extends Object implements ExpressionResolver
ExpressionResolver implementation.DEFAULT, EXPRESSION_PATTERN, REJECTING, TEST_RESOLVER| Modifier | Constructor and Description |
|---|---|
protected |
ExpressionResolverImpl() |
| 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. |
public 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 © 2014 JBoss by Red Hat. All rights reserved.