Interface AddOnValueProvider

All Known Implementing Classes:
DefaultAddOnValueProvider

public interface AddOnValueProvider
Interface to provide values between independent AddOns via the AddOnValueProviderRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Optional<T>
    getValue(String key, Class<T> type)
    Returns an Optional for the given key that contains the value if present.
  • Method Details

    • getValue

      <T> Optional<T> getValue(String key, Class<T> type)
      Returns an Optional for the given key that contains the value if present.
      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