JBoss Dynamic Model Representation API 1.2.0.Beta1

org.jboss.dmr
Class ValueExpressionResolver

java.lang.Object
  extended by org.jboss.dmr.ValueExpressionResolver

public class ValueExpressionResolver
extends Object

A resolver for value expressions.

Author:
David M. Lloyd

Field Summary
static ValueExpressionResolver DEFAULT_RESOLVER
          The default value expression resolver.
 
Constructor Summary
ValueExpressionResolver()
          Construct a new instance.
 
Method Summary
 String resolve(ValueExpression expression)
          Perform expression resolution.
protected  String resolvePart(String name)
          Resolve a single name in the expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESOLVER

public static final ValueExpressionResolver DEFAULT_RESOLVER
The default value expression resolver.

Constructor Detail

ValueExpressionResolver

public ValueExpressionResolver()
Construct a new instance.

Method Detail

resolve

public String resolve(ValueExpression expression)
Perform expression resolution.

Parameters:
expression - the expression to resolve
Returns:
the resolved string

resolvePart

protected String resolvePart(String name)
Resolve a single name in the expression. Return null if no resolution is possible. The default implementation (which may be delegated to) checks system properties, environment variables, and a small set of special strings.

Parameters:
name - the name to resolve
Returns:
the resolved value, or null for none

JBoss Dynamic Model Representation API 1.2.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.