-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need documentation on how to implement a CDI extension insdie a user feature. #7531
Comments
HI @benjamin-confino - the draft for this topic is now available for review: When you have chance, left me know if any further edits are needed. When you're satisfied with the draft, you can add the |
Hello David, thank you for your work on this. I have a few suggestions: The CDIExtensionMetadata class also enables the two most... (This one is not a technical issue, so feel free to overrule me on the English) The CDIAnnotation class becomes a bean defining annotation. Any class that is annotated with The CDIAnnotation class becomes a bean defining annotation. Any class that is annotated with In this example, each of these methods has a default implementation that returns an empty set, so you can implement only the ones that are relevant to your needs. The default methods are not specific to this example but apply to any use of |
Thanks @benjamin-confino - all suggestions implemented in the updated draft: |
@ramkumar-k-9286 - can you peer review this new topic? |
Peer ReviewThe following example shows an implementation of the CDIExtensionMetadata class, with three possible methods that extend the class. Maybe we can put it like You can implement
->
-> Are the
This configuration is all that you need to make your user extension extend CDI. |
Thanks for reviewing, all changes implemented except: Java syntax is ok as is |
Customers have been asking us how to create a CDI Extension inside a user feature. This is a simple process but requires using a SPI unique to OpenLiberty which currently has no documentation other than its javadoc.
This new doc should go under Contexts and Dependency Injection
Draft is at: #7525
Draft publication is at: https://docs-draft-openlibertyio.mqj6zf7jocq.us-south.codeengine.appdomain.cloud/docs/latest/cdi-extension-user-feature.html
The text was updated successfully, but these errors were encountered: