Package com.adaptris.interlok.resolver
Class ResolverImp
java.lang.Object
com.adaptris.interlok.resolver.ResolverImp
- All Implemented Interfaces:
Resolver
- Direct Known Subclasses:
FileResolver,FromEnvironment,FromSystemProperties
Abstract implementation of
Resolver.-
Field Details
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
ResolverImp
public ResolverImp()
-
-
Method Details
-
resolve
Resolve a key against a map.- Parameters:
key- the keymap- the map of properties / environment- Returns:
- the resolved value or the value of
keyif not found in the map.
-
asMap
Convenience method to turn a Properties into a Map<String, String>- Parameters:
p- the properties, if null, will return an empty map- Returns:
- a map
-