Package org.forgerock.openig.heap
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolve(String token)
Resolves the given token, returningnull
if resolution failed.String
resolve(String token, String def)
Resolves the given token, returningdef
value if resolution failed.
-
-
-
Method Detail
-
resolve
public String resolve(String token)
Resolves the given token, returningnull
if resolution failed.- Parameters:
token
- token to resolve (nevernull
)- Returns:
- the resolved value or null if unbound
-
resolve
public String resolve(String token, String def)
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
-
-