[infinispan-issues] [JBoss JIRA] (ISPN-7363) Allow @Input caches to Runnables in CDI
Seto Kaiba (JIRA)
issues at jboss.org
Wed Jan 18 05:42:00 EST 2017
[ https://issues.jboss.org/browse/ISPN-7363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13350272#comment-13350272 ]
Seto Kaiba commented on ISPN-7363:
----------------------------------
Hi. Maybe it's not easy to fix for Runnable.
https://github.com/infinispan/infinispan/blob/c1ba79865a756d02a622979fb0480939a46cdbdf/core/src/main/java/org/infinispan/distexec/DefaultExecutorService.java#L1103-L1124
https://github.com/infinispan/infinispan/blob/a535b9623504bc5ec88584130065c89f1f9f357e/cdi/embedded/src/main/java/org/infinispan/cdi/embedded/DelegatingDistributedTaskLifecycle.java#L42-L73
The RunnableAdapter is private.
I don't have an environment setup for Infinispan development. So I check the code directly by searching in github.
And I found that the CDI context is injected in the second link. But for the Runnable is wraped in the RunnableAdapter implements Callable which is private.
> Allow @Input caches to Runnables in CDI
> ---------------------------------------
>
> Key: ISPN-7363
> URL: https://issues.jboss.org/browse/ISPN-7363
> Project: Infinispan
> Issue Type: Bug
> Components: CDI Integration
> Affects Versions: 9.0.0.Beta1
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
>
> Currently injecting {{@Input}} caches work only for {{Callable}}. Since {{DefaultExecutorService}} supports also {{Runnable}}, we should also support injecting {{@Input}} caches there.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list