[ 
https://issues.apache.org/jira/browse/OWB-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894316#comment-16894316
 ] 

Greg Wilkins commented on OWB-1293:
-----------------------------------

Romain,

 

I can't call the JettyDecorator because that's not part of the CDI SPI and I 
don't want to be putting OWB dependencies into jetty... even reflection bound 
ones!

Unmanaged looks interesting and perhaps a better way to use the SPI... but now 
you have me worried... are we meant to be calling postContruct and preDestroy 
callbacks as well???? I'm not sure we have hooks for those events  - at least 
other than our current decorate and destroy ones.  I had assumed the CDI SPI 
calls I was doing would handle all injections and callback!  Obviously not :(

Current code is here: 
[https://github.com/eclipse/jetty.project/blob/jetty-9.4.x-3804-Decoration/jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiDecorator.java]

Can you just tell me exactly what the code should be in java against the CDI 
SPI to fully integrate and I will convert that to MethodHandles.  If using 
Unmanaged is best, then I'm happy to change to using that.... but I'd still 
like some full code examples.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

> Update Jetty integration prior to Jetty-10 release
> --------------------------------------------------
>
>                 Key: OWB-1293
>                 URL: https://issues.apache.org/jira/browse/OWB-1293
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Interceptor and Decorators
>            Reporter: Greg Wilkins
>            Priority: Major
>
> The current jetty integration relies on exposing private jetty APIs so a 
> jetty Decorator can be registered.   This is fragile and requires different 
> APIs for the upcoming jetty-10 release.
> Instead, Jetty is developing a mechanism where a object with a decorator 
> signature can be set as a context attribute and it will be introspected and 
> dynamically registered as a decorator without any API dependencies.
> This is currently being developed in 
> [https://github.com/eclipse/jetty.project/pull/3838] and an integration with 
> Weld is at [https://github.com/weld/core/pull/1926] 
> Feedback is sought from the OpenWebBeans team on the approach and then we'd 
> like to collaborate to make a similar integration.
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to