[cdi-dev] Observer ordering

George Gastaldi ggastald at redhat.com
Mon May 4 11:57:40 EDT 2015


Hi Michael,

Yes, it is available using the org.jboss.weld.experimental.Priority 
annotation.
Eg:

    public void observeEvent(@Observes @Priority(1) String event)
    {
       System.out.println("OBSERVED: " + event);
    }

Best Regards,

George Gastaldi


On 05/04/2015 12:49 PM, Michael Remijan wrote:
> Hi everyone,
>
> Is Observer ordering available yet in the RI?
>
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20150504/9da576b8/attachment.html 


More information about the cdi-dev mailing list