Many facilities in Java EE 6 are not injectable, such as, JSF: Converter, Validator, UIComponent, PhaseListener, XXXXEventLister... JMS: MessageListener JPA: EntityListener
ideally , all components should be injectable, some are considered as stateful component and has its complete lifecycle, some like the ones in the list should be injectable but can not be injected into other beans, maybe has a temporary conversation(if we must assign it into a scope). Of course, Seam 3 made some effort on them, I have use JSF converter etc, but it must define the scope. I remember in Java EE 7 maillist has some discussion like this. Spring defined @Component and its refinements(@Service, @Repository, @Controller) as managed bean, and an @Configurable for none managed bean. Unfortunately, Java EE 6/7 can not provide Spring like united @Component annotation to define a managed bean, Java EE 6 defined @ManagedBean, but others annotations such as @Stateful, @Stateless, JSF @ManagedBean are not refinements of Java EE defined @ManagedBean. Hantsy On 3/26/2013 01:31, Harald Wellmann wrote: > In Java EE 6, CDI injection into ConstraintValidators is not > supported, as far as I know. > > Does DeltaSpike fill this gap? Is it possible at all to hook into > validation with a CDI extension? > > Best regards, > Harald >