-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial specification text for method invokers
- Loading branch information
Showing
11 changed files
with
284 additions
and
124 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
24 changes: 24 additions & 0 deletions
24
api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/InvokerFactory.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package jakarta.enterprise.inject.build.compatible.spi; | ||
|
||
import jakarta.enterprise.invoke.InvokerBuilder; | ||
import jakarta.enterprise.lang.model.declarations.MethodInfo; | ||
|
||
/** | ||
* Factory for {@link InvokerBuilder}s. | ||
* | ||
* @since 4.1 | ||
*/ | ||
public interface InvokerFactory { | ||
/** | ||
* Returns a new {@link InvokerBuilder} for given method of given bean. The builder | ||
* eventually produces an opaque representation of the generated invoker. | ||
* <p> | ||
* If an invoker may not be built for given {@code bean} or for given {@code method}, | ||
* an exception is thrown. | ||
* | ||
* @param bean target bean of the invoker, must not be {@code null} | ||
* @param method target method of the invoker, must not be {@code null} | ||
* @return the invoker builder, never {@code null} | ||
*/ | ||
InvokerBuilder<InvokerInfo> createInvoker(BeanInfo bean, MethodInfo method); | ||
} |
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
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.