glassfish-hk2 icon indicating copy to clipboard operation
glassfish-hk2 copied to clipboard

Dynamic dependency injection framework

Results 91 glassfish-hk2 issues
Sort by recently updated
recently updated
newest added

Does this project have relationships to CD? It almost seems like a Glassfish internal competitor. Should it turn into a compatible implementation over time`?

I'm getting this error which I really don't understand: ``` WARN [2021-07-27 21:11:49,238] main org.glassfish.jersey.internal.Errors: The following warnings have been detected: WARNING: HK2 failure has been detected in a code...

I have a Jersey application and use RequestScope (for connection). Also, I have a separate thread with my custom Scope. How to mix bindings? I usually get an error connection...

@Service @Rank(123) // note: bug in Hk2 where rank defaults to 0 on factory types public class PersistenceStoreFactory implements Factory { @Override public PersistenceStore provide() { return null; } @Override...

Hi team. This issue has been found in HK2 of version 2.6.1: multiple instances of the same singleton are created when creation or initialization happens concurrently. Please find test class...

Type: Bug

A very common requirement is to be able to group services of the same contract into "buckets" that will determine how they are used. To facilitate this hk2 provides the...

I have a Jersey REST application, running on a Tomcat server. When enabling the Java Security Manager in Tomcat, I needed to grant several permissions related to hk2. ``` grant...

There are many, many places in our code where we execute the following logic: ```java for (ServiceHandle handle : findServices()) try (handle) { handle.getService().foo(); } ``` The idea here is...

The HK2 Metadata Generator seems to generate nothing for Kotlin projects. Is there any way to adapt the HK2 Metadata Generator for Kotlin? Currently I'm using a dirty workaround with...