jsr345-experts@ejb-spec.java.net

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

From: Antonio Goncalves <antonio.goncalves_at_gmail.com>
Date: Mon, 11 Jul 2011 10:37:11 +0200

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 <http://www.antoniogoncalves.org> |
Twitter<http://twitter.com/agoncal>|
Blog <http://feeds.feedburner.com/AntonioGoncalves> |
LinkedIn<http://www.linkedin.com/in/agoncal>| Paris
JUG <http://www.parisjug.org>