# ActionListInitializer

Import: `import com.install4j.api.beaninfo.ActionListInitializer;`

```java
interface ActionListInitializer
```

Interface for the [`ActionBeanInfo.ATTRIBUTE_ACTION_LIST_INITIALIZER`](ActionBeanInfo.md#attribute-action-list-initializer) value of a bean descriptor.
With an action list initializer, you can modify actions after they are instantiated in an action list.

This is useful if you have default property values that should be different if the action is
instantiated in an action list. This initializer is run after the [`BeanInitializer`](BeanInitializer.md).

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`initializeAction(Action, List<String>)`](#initializeaction-action-list-string) | `void` | Called after the unconfigured action is instantiated the first time at design-time. |

### initializeAction(Action, List<String>)

```java
void initializeAction(Action action, List<String> actionKeys)
```

Called after the unconfigured action is instantiated the first time at design-time.
For existing action instances that are loaded from a project, this method is not called
after instantiation.


**Parameters:**

- `action` — the action that should be initialized
- `actionKeys` — the action keys configured for the [`ActionList`](../beans/ActionList.md) property by calling
[`ActionListPropertyDescriptor.setActionKeys`](ActionListPropertyDescriptor.md#setactionkeys-string)

