jsr342-experts@javaee-spec.java.net

[jsr342-experts] Re: _at_Priority

From: Antonio Goncalves <antonio.goncalves_at_gmail.com>
Date: Sun, 9 Dec 2012 07:10:04 +0100

Would it be possible to prioritize @Singletons at @Startup for example
instead of using @Depends :

@Singleton
@Startup
@Priority(100)
public class MyVeryFirstSingleton {}

@Singleton
@Startup
@Priority(4500)
public class MyVeryLastSingleton {}

If yes, what about servlets ?


On Sun, Dec 9, 2012 at 6:31 AM, Bill Shannon <bill.shannon_at_oracle.com>wrote:

> Antonio Goncalves wrote on 12/08/2012 03:23 AM:
> > Hi,
> >
> > Why would such annotation be in the Commons Annotations JSR
> (javax.annotation
> > package I suppose) instead of javax.interceptor ?
> We believe this might be useful in other cases as well.
>
> > If the Interceptor spec evolves (and it looks like it, to a 1.2 I
> suppose)
> > will we be taking it out of the EJB JSR and create a new JSR just for
> > interceptors ?
> It's already a separate spec. We'll be updating it using the JCP
> Maintenance
> Release process.
>
>


-- 
Antonio Goncalves
Software architect and Java Champion
Web site <http://www.antoniogoncalves.org> |
Twitter<http://twitter.com/agoncal>|
LinkedIn <http://www.linkedin.com/in/agoncal> | Paris
JUG<http://www.parisjug.org> |
Devoxx France <http://www.devoxx.fr>