Interface AddOnValueProvider
-
- All Known Implementing Classes:
DefaultAddOnValueProvider
public interface AddOnValueProviderInterface to provide values between independent AddOns via theAddOnValueProviderRegistry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> java.util.Optional<T>getValue(java.lang.String key, java.lang.Class<T> type)Returns anOptionalfor the given key that contains the value if present.
-
-
-
Method Detail
-
getValue
<T> java.util.Optional<T> getValue(java.lang.String key, java.lang.Class<T> type)Returns anOptionalfor the given key that contains the value if present.- Parameters:
key- the key to retrieve the value fortype- the expected type of the value- Returns:
- an
Optionalthat either contains the value or is empty if key or type don't match
-
-