Package org.gradle.api

# Interface ActionConfiguration

public interface ActionConfiguration
Allows specification of configuration for some action.

The configuration is represented using zero or more initialization parameters to use when constructing an instance of the implementation class. The following types are supported:

- `String`
- `Boolean`
- `Integer`, `Long`, `Short` and other `Number` subtypes.
- `File`
- A `List` or `Set` of any supported type.
- An array of any supported type.
- A `Map` with keys and values of any supported type.
- An `Enum` type.
- A `Named` type created using `ObjectFactory.named(Class, String)`.
- Any serializable type.

Since:
  4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `@Nullable Object[]`
  `getParams()`
  Gets the initialization parameters that will be used when constructing an instance of the implementation class.
  `void`
  `params(@Nullable Object... params)`
  Adds initialization parameters to use when constructing an instance of the implementation class.
  `void`
  `setParams(@Nullable Object... params)`
  Sets any initialization parameters to use when constructing an instance of the implementation class.

- ## Method Details

  - ### params

    void params(@Nullable Object... params)
    Adds initialization parameters to use when constructing an instance of the implementation class.
    Parameters:
      `params` - - the parameters to use during construction

  - ### setParams

    void setParams(@Nullable Object... params)
    Sets any initialization parameters to use when constructing an instance of the implementation class.
    Parameters:
      `params` - - the parameters to use during construction

  - ### getParams

    @Nullable Object[] getParams()
    Gets the initialization parameters that will be used when constructing an instance of the implementation class.
    Returns:
      the parameters to use during construction