Class DefaultAddOnValueProvider

java.lang.Object
de.hybris.platform.addonsupport.valueprovider.impl.DefaultAddOnValueProvider
All Implemented Interfaces:
AddOnValueProvider

public class DefaultAddOnValueProvider extends Object implements AddOnValueProvider
Default implementation of the AddOnValueProvider interface.
  • Constructor Details

    • DefaultAddOnValueProvider

      public DefaultAddOnValueProvider()
  • Method Details

    • getValue

      public <T> Optional<T> getValue(String key, Class<T> type)
      Description copied from interface: AddOnValueProvider
      Returns an Optional for the given key that contains the value if present.
      Specified by:
      getValue in interface AddOnValueProvider
      Parameters:
      key - the key to retrieve the value for
      type - the expected type of the value
      Returns:
      an Optional that either contains the value or is empty if key or type don't match
    • getSuppliers

      protected Map<String,Supplier> getSuppliers()
    • setSuppliers

      public void setSuppliers(Map<String,Supplier> suppliers)