JBoss Metadata Common 7.2.2.Final

org.jboss.metadata.property
Interface SimpleExpressionResolver

All Known Implementing Classes:
CompatibilityExpressionResolver, CompositePropertyResolver, JBossASSimpleExpressionResolver, PropertiesPropertyResolver, SystemPropertyResolver

public interface SimpleExpressionResolver

Resolves the value of a simple expression, where a simple expression is defined as the content between the strings "${" and "}", with no other simple expressions nested inside.

Author:
Brian Stansberry (c) 2014 Red Hat Inc.
See Also:
JBossASSimpleExpressionResolver

Nested Class Summary
static class SimpleExpressionResolver.ResolutionResult
          The result of resolving some expression content.
 
Method Summary
 SimpleExpressionResolver.ResolutionResult resolveExpressionContent(String expressionContent)
          Resolve the given expression content.
 

Method Detail

resolveExpressionContent

SimpleExpressionResolver.ResolutionResult resolveExpressionContent(String expressionContent)
Resolve the given expression content. The following guarantees are made with regard to the content:
  1. The content is the entire string that was included between a leading "${" and a trailing "}".
  2. The content itself does not include the leading "${" and trailing "}".
  3. The content itself does not include any other "${" and trailing "}", i.e. there is no nested expression.

Parameters:
expressionContent - the string that was between the leading "${"and trailing "}" in an expression
Returns:
the result of the resolution, or null if the expression content could not be resolved.

JBoss Metadata Common 7.2.2.Final

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.