Class DefaultBindableCache

java.lang.Object
org.tentackle.bind.DefaultBindableCache
All Implemented Interfaces:
BindableCache

public class DefaultBindableCache extends Object implements BindableCache
Cache for bindable elements per class.
Author:
harald
  • Constructor Details

    • DefaultBindableCache

      public DefaultBindableCache(BindingFactory bindingFactory)
      Creates a bindable cache.
      Parameters:
      bindingFactory - the binding factory to create binding elements
  • Method Details

    • getBindableMap

      public Collection<BindableElement> getBindableMap(Class<?> clazz, boolean declaredOnly)
      Gets the map of bindables for given class.
      Specified by:
      getBindableMap in interface BindableCache
      Parameters:
      clazz - the class to retrieve the bindables for
      declaredOnly - true if only declared elements, else inherited as well
      Returns:
      the elements