Interface Resolver
- All Known Implementing Classes:
BeansResolverFactory
,MocksResolverFactory
,SpringBeansResolverFactory
,VariableScopeResolver
public interface Resolver
A resolver for Objects bound to a key. A resolver provides a set of read only key bindings.
This means that key it is not possible to clear a key binding (remove the object bound to the key)
or to replace a key binding (set a new object bound to the key).
- Author:
- Daniel Meyer, Tom Baeyens
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(Object key) Allows checking whether there is currently an object bound to the key.Returns the object currently bound to the key or false if no object is currently bound to the keykeySet()
Returns the set of key that can be resolved using this resolver.
-
Method Details
-
containsKey
Allows checking whether there is currently an object bound to the key.- Parameters:
key
- the key to check- Returns:
- true if there is currently an object bound to the key. False otherwise.
-
get
Returns the object currently bound to the key or false if no object is currently bound to the key- Parameters:
key
- the key of the object to retrieve.- Returns:
- the object currently bound to the key or 'null' if no object is currently bound to the key.
-
keySet
Returns the set of key that can be resolved using this resolver.- Returns:
- the set of keys that can be resolved by this resolver.
-