[
https://issues.apache.org/jira/browse/OWB-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888007#comment-16888007
]
Romain Manni-Bucau commented on OWB-1293:
-----------------------------------------
[[email protected]] can you try to add cdi in the test
(tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/CDITests.java)
through `--add-to-start`.
tests/test-webapps/test-cdi-webapp/src/main/webapp/WEB-INF/jetty-env.xml can
also to use org.apache.webbeans.container.ManagerObjectFactory instead of the
weld one. Then it seems there is a classloader issue on the cdi initializer
making it skipped but I guess you will make it a server class faster than me to
enable it to be loaded from the container ;). Last thing to change is likely
jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiDecorator.java since the
destroy should release the creationcontext created in the decorate and not call
cdi.Destroy which destroys an Instance and not any instance.
> 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)