geosolutions-it / geobatch

Open Source GeoSpatial Processing Simplified
GNU General Public License v3.0
22 stars 19 forks source link

Allow bean wiring in actions #216

Closed etj closed 11 years ago

etj commented 11 years ago

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.

etj commented 11 years ago

The solutions expects the Action fields to be annotated with @Autowire. Such fields will be processed using Spring's utils.