[infinispan-issues] [JBoss JIRA] (ISPN-10137) Component dependency injection should not use reflection

Dan Berindei (Jira) issues at jboss.org
Wed May 22 15:20:01 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-10137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei updated ISPN-10137:
--------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/6948


> Component dependency injection should not use reflection
> --------------------------------------------------------
>
>                 Key: ISPN-10137
>                 URL: https://issues.jboss.org/browse/ISPN-10137
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Core
>    Affects Versions: 9.4.12.Final, 10.0.0.Beta3
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>            Priority: Major
>             Fix For: 10.0.0.Beta4
>
>
> Quarkus allows reflection, but "[t]his is normally achieved by listing every class, method, field and constructor in a JSON file, and passing this as a parameter into the native image build", so it would be much better if we generated code to perform the injection without reflection.
> Because the generated code needs to obey Java's accessibility rules and generating code in the same class is impractical, private fields and methods annotated {{@Inject}} will not be supported.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list