-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial proposal for invokable methods: introduce invoker builder
This commit introduces an advanced concept for CDI invokable methods, the `InvokerBuilder`. It can be used to create more complex invokers that can: - automatically lookup the target instance or arguments; - transform the target instance and arguments before invocation; - transform the return value and thrown exception after invocation; - wrap the invoker into a custom piece of code for maximum flexibility. An `InvokerBuilder` can be used during deployment and the outcome must be registered under certain key (which is a `Class` object). The built invoker can later be obtained from `InvokableMethod`, or it can be stored and used directly.
- Loading branch information
Showing
4 changed files
with
415 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.