Key
- Value
- public class DelegateMapResolver<Key,Value> extends MapResolver<Key,Value>
A map-based resolver that will delegate to another resolved if the element is not
in the map. This is used to override a wrapped RefResolver
, for example for
scoping of some sort.
Constructor and Description |
---|
DelegateMapResolver(RefResolver<Key,Value> delegate,
java.util.Map<Key,Value> map) |
Modifier and Type | Method and Description |
---|---|
Value |
resolve(Key key) |
getMap
public DelegateMapResolver(RefResolver<Key,Value> delegate, java.util.Map<Key,Value> map)
public Value resolve(Key key)
resolve
in interface RefResolver<Key,Value>
resolve
in class MapResolver<Key,Value>