You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "John D. Ament" <jo...@apache.org> on 2017/07/21 17:34:59 UTC

Interceptor discovery

I have an interceptor defined as:

@Interceptor
@LoggedIn
@Priority(Interceptor.Priority.APPLICATION + 100)
public class LoggedInInterceptor {

and a beans.xml with

<beans version="1.1" bean-discovery-mode="annotated"/>

This interceptor isn't being discovered.  It is discovered when beans.xml
is an empty file.  This same interceptor is discovered on OWB 1.7, but not
in 2.0.1-SNAPSHOT.

John

Re: Interceptor discovery

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Thanks Mark

Created OWB-1204


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-07-23 12:36 GMT+02:00 Mark Struberg <st...@yahoo.de.invalid>:

> https://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#bean_
> defining_annotations
>
> Lg,
> Strub
>
> > Am 23.07.2017 um 09:20 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >
> > Can one of you list the part of the spec stating it for this thread to be
> > self contained please?
> >
> > Who takes the fix? Can have a look end of next week I guess if it helps.
> >
> > Le 22 juil. 2017 23:37, "Mark Struberg" <st...@yahoo.de.invalid> a
> > écrit :
> >
> >> John is right. interceptor and Decorator are bean defining annotations.
> >>
> >> John, can you plz file a ticket!
> >>
> >> Txs and LieGrue,
> >> Strub
> >>
> >>> Am 21.07.2017 um 21:37 schrieb Romain Manni-Bucau <
> rmannibucau@gmail.com
> >>> :
> >>>
> >>> Conflicts with annotated part i think. Priority doesnt enable a bean by
> >>> itself.
> >>>
> >>> Le 21 juil. 2017 21:31, "John D. Ament" <jo...@apache.org> a
> écrit
> >> :
> >>>
> >>>> The interceptor is intended to be enabled just because of the
> @Priority
> >>>> annotation.  Nothing else should be required.  Please review 9.4 of
> the
> >>>> spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#
> >> enabled_interceptors
> >>>>
> >>>> John
> >>>>
> >>>> On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <
> >> rmannibucau@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Misses @Dependent yes.
> >>>>>
> >>>>> Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a
> >> écrit
> >>>> :
> >>>>>
> >>>>> I have an interceptor defined as:
> >>>>>
> >>>>> @Interceptor
> >>>>> @LoggedIn
> >>>>> @Priority(Interceptor.Priority.APPLICATION + 100)
> >>>>> public class LoggedInInterceptor {
> >>>>>
> >>>>> and a beans.xml with
> >>>>>
> >>>>> <beans version="1.1" bean-discovery-mode="annotated"/>
> >>>>>
> >>>>> This interceptor isn't being discovered.  It is discovered when
> >> beans.xml
> >>>>> is an empty file.  This same interceptor is discovered on OWB 1.7,
> but
> >>>> not
> >>>>> in 2.0.1-SNAPSHOT.
> >>>>>
> >>>>> John
> >>>>>
> >>>>
> >>
> >>
>

Re: Interceptor discovery

Posted by Mark Struberg <st...@yahoo.de.INVALID>.
https://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#bean_defining_annotations

Lg,
Strub

> Am 23.07.2017 um 09:20 schrieb Romain Manni-Bucau <rm...@gmail.com>:
> 
> Can one of you list the part of the spec stating it for this thread to be
> self contained please?
> 
> Who takes the fix? Can have a look end of next week I guess if it helps.
> 
> Le 22 juil. 2017 23:37, "Mark Struberg" <st...@yahoo.de.invalid> a
> écrit :
> 
>> John is right. interceptor and Decorator are bean defining annotations.
>> 
>> John, can you plz file a ticket!
>> 
>> Txs and LieGrue,
>> Strub
>> 
>>> Am 21.07.2017 um 21:37 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
>>> :
>>> 
>>> Conflicts with annotated part i think. Priority doesnt enable a bean by
>>> itself.
>>> 
>>> Le 21 juil. 2017 21:31, "John D. Ament" <jo...@apache.org> a écrit
>> :
>>> 
>>>> The interceptor is intended to be enabled just because of the @Priority
>>>> annotation.  Nothing else should be required.  Please review 9.4 of the
>>>> spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#
>> enabled_interceptors
>>>> 
>>>> John
>>>> 
>>>> On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <
>> rmannibucau@gmail.com>
>>>> wrote:
>>>> 
>>>>> Misses @Dependent yes.
>>>>> 
>>>>> Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a
>> écrit
>>>> :
>>>>> 
>>>>> I have an interceptor defined as:
>>>>> 
>>>>> @Interceptor
>>>>> @LoggedIn
>>>>> @Priority(Interceptor.Priority.APPLICATION + 100)
>>>>> public class LoggedInInterceptor {
>>>>> 
>>>>> and a beans.xml with
>>>>> 
>>>>> <beans version="1.1" bean-discovery-mode="annotated"/>
>>>>> 
>>>>> This interceptor isn't being discovered.  It is discovered when
>> beans.xml
>>>>> is an empty file.  This same interceptor is discovered on OWB 1.7, but
>>>> not
>>>>> in 2.0.1-SNAPSHOT.
>>>>> 
>>>>> John
>>>>> 
>>>> 
>> 
>> 

Re: Interceptor discovery

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Can one of you list the part of the spec stating it for this thread to be
self contained please?

Who takes the fix? Can have a look end of next week I guess if it helps.

Le 22 juil. 2017 23:37, "Mark Struberg" <st...@yahoo.de.invalid> a
écrit :

> John is right. interceptor and Decorator are bean defining annotations.
>
> John, can you plz file a ticket!
>
> Txs and LieGrue,
> Strub
>
> > Am 21.07.2017 um 21:37 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >
> > Conflicts with annotated part i think. Priority doesnt enable a bean by
> > itself.
> >
> > Le 21 juil. 2017 21:31, "John D. Ament" <jo...@apache.org> a écrit
> :
> >
> >> The interceptor is intended to be enabled just because of the @Priority
> >> annotation.  Nothing else should be required.  Please review 9.4 of the
> >> spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#
> enabled_interceptors
> >>
> >> John
> >>
> >> On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> >> wrote:
> >>
> >>> Misses @Dependent yes.
> >>>
> >>> Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a
> écrit
> >> :
> >>>
> >>> I have an interceptor defined as:
> >>>
> >>> @Interceptor
> >>> @LoggedIn
> >>> @Priority(Interceptor.Priority.APPLICATION + 100)
> >>> public class LoggedInInterceptor {
> >>>
> >>> and a beans.xml with
> >>>
> >>> <beans version="1.1" bean-discovery-mode="annotated"/>
> >>>
> >>> This interceptor isn't being discovered.  It is discovered when
> beans.xml
> >>> is an empty file.  This same interceptor is discovered on OWB 1.7, but
> >> not
> >>> in 2.0.1-SNAPSHOT.
> >>>
> >>> John
> >>>
> >>
>
>

Re: Interceptor discovery

Posted by Mark Struberg <st...@yahoo.de.INVALID>.
John is right. interceptor and Decorator are bean defining annotations.

John, can you plz file a ticket! 

Txs and LieGrue,
Strub

> Am 21.07.2017 um 21:37 schrieb Romain Manni-Bucau <rm...@gmail.com>:
> 
> Conflicts with annotated part i think. Priority doesnt enable a bean by
> itself.
> 
> Le 21 juil. 2017 21:31, "John D. Ament" <jo...@apache.org> a écrit :
> 
>> The interceptor is intended to be enabled just because of the @Priority
>> annotation.  Nothing else should be required.  Please review 9.4 of the
>> spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#enabled_interceptors
>> 
>> John
>> 
>> On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <rm...@gmail.com>
>> wrote:
>> 
>>> Misses @Dependent yes.
>>> 
>>> Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a écrit
>> :
>>> 
>>> I have an interceptor defined as:
>>> 
>>> @Interceptor
>>> @LoggedIn
>>> @Priority(Interceptor.Priority.APPLICATION + 100)
>>> public class LoggedInInterceptor {
>>> 
>>> and a beans.xml with
>>> 
>>> <beans version="1.1" bean-discovery-mode="annotated"/>
>>> 
>>> This interceptor isn't being discovered.  It is discovered when beans.xml
>>> is an empty file.  This same interceptor is discovered on OWB 1.7, but
>> not
>>> in 2.0.1-SNAPSHOT.
>>> 
>>> John
>>> 
>> 


Re: Interceptor discovery

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Conflicts with annotated part i think. Priority doesnt enable a bean by
itself.

Le 21 juil. 2017 21:31, "John D. Ament" <jo...@apache.org> a écrit :

> The interceptor is intended to be enabled just because of the @Priority
> annotation.  Nothing else should be required.  Please review 9.4 of the
> spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#enabled_interceptors
>
> John
>
> On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Misses @Dependent yes.
> >
> > Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a écrit
> :
> >
> > I have an interceptor defined as:
> >
> > @Interceptor
> > @LoggedIn
> > @Priority(Interceptor.Priority.APPLICATION + 100)
> > public class LoggedInInterceptor {
> >
> > and a beans.xml with
> >
> > <beans version="1.1" bean-discovery-mode="annotated"/>
> >
> > This interceptor isn't being discovered.  It is discovered when beans.xml
> > is an empty file.  This same interceptor is discovered on OWB 1.7, but
> not
> > in 2.0.1-SNAPSHOT.
> >
> > John
> >
>

Re: Interceptor discovery

Posted by "John D. Ament" <jo...@apache.org>.
The interceptor is intended to be enabled just because of the @Priority
annotation.  Nothing else should be required.  Please review 9.4 of the
spec http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#enabled_interceptors

John

On Fri, Jul 21, 2017 at 3:22 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Misses @Dependent yes.
>
> Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a écrit :
>
> I have an interceptor defined as:
>
> @Interceptor
> @LoggedIn
> @Priority(Interceptor.Priority.APPLICATION + 100)
> public class LoggedInInterceptor {
>
> and a beans.xml with
>
> <beans version="1.1" bean-discovery-mode="annotated"/>
>
> This interceptor isn't being discovered.  It is discovered when beans.xml
> is an empty file.  This same interceptor is discovered on OWB 1.7, but not
> in 2.0.1-SNAPSHOT.
>
> John
>

Re: Interceptor discovery

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Misses @Dependent yes.

Le 21 juil. 2017 19:35, "John D. Ament" <jo...@apache.org> a écrit :

I have an interceptor defined as:

@Interceptor
@LoggedIn
@Priority(Interceptor.Priority.APPLICATION + 100)
public class LoggedInInterceptor {

and a beans.xml with

<beans version="1.1" bean-discovery-mode="annotated"/>

This interceptor isn't being discovered.  It is discovered when beans.xml
is an empty file.  This same interceptor is discovered on OWB 1.7, but not
in 2.0.1-SNAPSHOT.

John