Class TokenResolver

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

@Deprecated(since="2024.6.0", forRemoval=true) public class TokenResolver extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Offers a user-friendly API to the COMMONS config property resolvers.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(String token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resolves the given token, returning null if resolution failed.
    resolve(String token, String def)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resolves the given token, returning def value if resolution failed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • resolve

      public String resolve(String token)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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