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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)
      Allows checking whether there is currently an object bound to the key.
      java.lang.Object get​(java.lang.Object key)
      Returns the object currently bound to the key or false if no object is currently bound to the key
      java.util.Set<java.lang.String> keySet()
      Returns the set of key that can be resolved using this resolver.
    • Method Detail

      • containsKey

        boolean containsKey​(java.lang.Object key)
        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

        java.lang.Object get​(java.lang.Object key)
        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

        java.util.Set<java.lang.String> 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.