Comments (3)
@mkouba I had a question about that: why do we have a warning? Coming from the Spring world originally, I must admit that all my injections were done in private fields so I was surprised to see this warning.
from quarkus.
Private members require reflection fallbacks which is something we'd like to avoid. And IMO it's not even a good practice in the DI world - you should rather use constructor injection and final private fields or maybe setter/initializer injection. For encapsulation package-private members should suffice. Note that some frameworks even don't support it, e.g. Dagger2.
That being said, I'm aware of the fact that private fields injection is commonly used. However, it does not mean we should give up this mission ;-)
from quarkus.
OK, makes sense, thanks.
from quarkus.
Related Issues (20)
- MessageBundle naming issue HOT 3
- WebAuthn usage with JWT instead of cookies HOT 9
- Upgrading to 3.9.2 from 3.8.3 RolesAllowed on implementing class of an interface using jaxrs are not used. HOT 24
- Upgrading to 3.9.2 from 3.8.1 Multiple Delete from Multiple datasources in One Transactional throw HOT 4
- Add a configuration to serve a local directory with a static handler HOT 17
- Information Exposure Through Environmental Variables HOT 1
- OTEL EUSP error when using Custom Jakarta REST SecurityContext HOT 3
- Discrepancy between Quarkus REST behavior and Cache @CacheInvalidateAll behavior HOT 8
- Programmatically building logger only works with log4j2-jboss-logmanager:1.0.0 HOT 2
- Hot Reloading conflicts with Maven Flatten Plugin HOT 3
- Resteasy Reactive: Ignore JAX-RS Resource method field thanks to custom logic HOT 3
- Jackson: custom ObjectMapper not delegated to MicroProfile RestClient HOT 7
- Jib can't authenticate to the docker.io registry HOT 13
- Mock not executed when running native Tests HOT 2
- Unable to publish app to OpenShift: `field is immutable` HOT 5
- () breaks title in devui HOT 3
- REST Client `@RestForm` does not convert for `List<T>` HOT 2
- Failed to generate Java classes from proto files HOT 2
- Signed JARs may be modified during a native build HOT 1
- Access token is verified also if not needed and using the wrong JWKS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.