Before @action implementation, when an action needed a bean for configuration, we could inject the value in the GeneratorService, which then would set such value in the Action in the createAction method.
Now there is no way to inject beans into an action.
We may use the @Autowire annotation in the Action's fields, and make the generic action generator actively scan for the bean and then set them into the created action instance.
Before @action implementation, when an action needed a bean for configuration, we could inject the value in the GeneratorService, which then would set such value in the Action in the createAction method. Now there is no way to inject beans into an action.
We may use the
@Autowire
annotation in the Action's fields, and make the generic action generator actively scan for the bean and then set them into the created action instance.