Interface IConfigurationAction
public interface IConfigurationAction
Configuration Action interface.
Configuration Actions are called by configurations when processing configuration fields, and, for a determined type, provide getters and setters for the underlying storage mechanism, abstracting away storage concerns from the core logic.
-
Method Summary
Modifier and TypeMethodDescriptionReturns, for a provided field, the value stored by the configuration action's storage mechanism.Class<?>[]getTypes()Returns an array of classes (types) that this configuration action can handle.voidSets a provided field's value to the configuration action's storage mechanism.voidsetDefault(Field field, Object value) Sets a provided field's default value to the configuration action's storage mechanism.
-
Method Details
-
getTypes
Class<?>[] getTypes()Returns an array of classes (types) that this configuration action can handle.- Returns:
- Supported types
-
get
Returns, for a provided field, the value stored by the configuration action's storage mechanism.- Parameters:
field- Requested field- Returns:
- Field's stored value
-
set
Sets a provided field's value to the configuration action's storage mechanism.- Parameters:
field- Requested fieldvalue- Field's value to store
-
setDefault
Sets a provided field's default value to the configuration action's storage mechanism.- Parameters:
field- Requested fieldvalue- Field's default value to store
-