Class TokenResolver

java.lang.Object
org.forgerock.openig.heap.TokenResolver

public class TokenResolver extends Object
Offers a user-friendly API to the COMMONS config property resolvers.
  • Method Details

    • resolve

      public String resolve(String token)
      Resolves the given token, returning null if resolution failed.
      Parameters:
      token - token to resolve (never null)
      Returns:
      the resolved value or null if unbound
    • resolve

      public String resolve(String token, String def)
      Resolves the given token, returning def value if resolution failed.
      Parameters:
      token - token to resolve (never null)
      def - default value to provide for unbound tokens (may be null)
      Returns:
      the resolved value or default value (may be null) if unbound