jsr345-experts@ejb-spec.java.net

[jsr345-experts] Re: EJB_SPEC-19 - Decoupling the @Startup/@DependsOn annotations from the EJB component model

From: Pete Muir <pmuir_at_bleepbleep.org.uk>
Date: Tue, 12 Jul 2011 21:03:40 +0100

Yeah, this is what I want to avoid - it's a big deviation from the "CDI style"

On 11 Jul 2011, at 09:37, Antonio Goncalves wrote:

> What about using @Named and depending on the name of the component ? I don't know how far Expression Language 3.0 will go but we could even have things like wildcard and so on :
>
> @ApplicationScoped
> @Startup
> @DependsOn("{myBean}","{*Start*}" )
> public class MyStartupBean {
> }
>
> @Named
> public class MyBean {
> }
>
> @Named
> public class MyStartupBean {
> }
>
> Antonio
>
>
> On Sun, Jul 10, 2011 at 20:22, Pete Muir <pmuir_at_bleepbleep.org.uk> wrote:
> I think this is a really good idea, and would fix something people really want in CDI.
>
> One question with @DependsOn - it takes ejb names as attributes, which is something managed beans (especially CDI beans) don't have. Whilst this may be more of an issue for the CDI EG, any ideas on how to handle this?
>
>
>
> --
> Antonio Goncalves
> Software architect and Java Champion
>
> Web site | Twitter | Blog | LinkedIn | Paris JUG