[
https://issues.apache.org/jira/browse/EXTCDI-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek reopened EXTCDI-58:
------------------------------------
Assignee: Gerhard Petracek
> support for @Inject in converters, validators and phase-listeners
> -----------------------------------------------------------------
>
> Key: EXTCDI-58
> URL: https://issues.apache.org/jira/browse/EXTCDI-58
> Project: MyFaces CODI
> Issue Type: New Feature
> Components: JEE-JSF12-Module, JEE-JSF20-Module
> Reporter: Gerhard Petracek
> Assignee: Gerhard Petracek
> Fix For: 0.9.0
>
>
> the qualifier annotation @Advanced should be re-used as marker annotation for
> marking jsf converters, validators and phase-listener which should benefit
> from dependency injection.
> example in combination with jsf2:
> @Advanced
> @FacesValidator("...")
> public class DependencyInjectionAwareValidator implements Validator
> {
> @Inject
> private CustomValidationService customValidationService;
> public void validate(FacesContext facesContext, UIComponent uiComponent,
> Object value) throws ValidatorException
> {
> Violation violation = this.customValidationService.validate(value);
> //...
> }
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira