Interface ExpressionResolver

All Known Subinterfaces:
OperationContext
All Known Implementing Classes:
ExpressionResolverImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExpressionResolver
Resolves ModelType.EXPRESSION expressions in a ModelNode.
Author:
Kabir Khan
  • Field Details

    • EXPRESSION_PATTERN

      static final Pattern EXPRESSION_PATTERN
      A Pattern that can be used to identify strings that include expression syntax
    • SIMPLE

      static final ExpressionResolver SIMPLE
      An 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 resolver extensions.
    • TEST_RESOLVER

      static final ExpressionResolver TEST_RESOLVER
      An 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 resolver extensions.
    • SIMPLE_LENIENT

      static final ExpressionResolver SIMPLE_LENIENT
      An expression resolver that will not throw an 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 resolver extensions.
    • REJECTING

      static final ExpressionResolver REJECTING
      An expression resolver that throws an 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.
    • EXTENSION_REJECTING

      static final ExpressionResolver EXTENSION_REJECTING
      An expression resolver that throws an ExpressionResolver.ExpressionResolutionServerException if any extension expressions are found, otherwise providing the same behavior as SIMPLE. Intended for use in cases where ExpressionResolverExtensions cannot be available but non-extension expression resolution is wanted.
  • Method Details