deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Muir <pm...@redhat.com>
Subject Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler
Date Tue, 06 Mar 2012 16:01:27 GMT
So, you mean just write a bean with all the boilerplate code in it? 

On 6 Mar 2012, at 15:58, Gerhard Petracek wrote:

> hi pete,
> 
> instead of the interface you can just implement a bean which does the same.
> 
> regards,
> gerhard
> 
> 
> 
> 2012/3/6 Pete Muir <pmuir@redhat.com>
> 
>> What CDI mechanism would you use instead?
>> 
>> On 5 Mar 2012, at 08:47, Gerhard Petracek wrote:
>> 
>>> +0
>>> no -1 because there are use-cases for it.
>>> no +1 because i would use std. cdi mechanisms instead.
>>> 
>>> regards,
>>> gerhard
>>> 
>>> 
>>> 
>>> 2012/3/4 Gerhard Petracek <gerhard.petracek@gmail.com>
>>> 
>>>> hi john,
>>>> 
>>>> the sub-task is perfectly fine.
>>>> 
>>>> regards,
>>>> gerhard
>>>> 
>>>> 
>>>> 
>>>> 2012/3/4 John D. Ament <john.d.ament@gmail.com>
>>>> 
>>>> Hi All
>>>>> 
>>>>> I wanted to bring up the subject of ServiceHandler.  I added 113 as a
>>>>> child
>>>>> of DELTASPIKE-2, looked appropriate but not 100% sure (so please let
me
>>>>> know if you think it's not appropriate as a child).  ServiceHandler is
>> a
>>>>> feature in Solder that allows you to define an interceptor that manages
>>>>> generic calls against an injected interface.  The API is as follows:
>>>>> 
>>>>> - @ServiceHandlerType(Class<?> clazz) - placed on an annotation
that
>> would
>>>>> be placed on the interface.  Indicates what interceptor would be
>> invoked
>>>>> for calls against this interface.
>>>>> 
>>>>> It's then up to the application developer/framework author to define
>>>>> annotations that go on methods, as well as the interceptor itself that
>>>>> will
>>>>> be invoked.  The feature for ServiceHandler would be to provide the
>> API of
>>>>> the type and then the infrastructure required to make the interceptor
>> be
>>>>> called.  Existing documentation of the feature:
>>>>> 
>>>>> 
>> http://docs.jboss.org/seam/3/3.1.0.Final/reference/en-US/html/solder-servicehandler.html
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> john
>>>>> 
>>>> 
>>>> 
>> 
>> 


Mime
View raw message