Package org.forgerock.openig.heap
Class TokenResolver
java.lang.Object
org.forgerock.openig.heap.TokenResolver
Offers a user-friendly API to the COMMONS config property resolvers.
-
Method Summary
-
Method Details
-
resolve
Resolves the given token, returningnull
if resolution failed.- Parameters:
token
- token to resolve (nevernull
)- Returns:
- the resolved value or null if unbound
-
resolve
Resolves the given token, returningdef
value if resolution failed.- Parameters:
token
- token to resolve (nevernull
)def
- default value to provide for unbound tokens (may benull
)- Returns:
- the resolved value or default value (may be null) if unbound
-