glassfish-hk2
glassfish-hk2 copied to clipboard
Dynamic dependency injection framework
org.glassfish.hk2.utilities.reflection.ReflectionHelper#parseServiceMetadataString is badly broken
There does not appear to be a way to place a metadata string inside the Service annotation in such a way that multiple values for a given key will be...
Version 2.4.0-b34 has undeploy problems in Apache Tomcat: ``` Nov 21, 2015 8:52:29 PM org.apache.catalina.startup.HostConfigcheckResources INFO: Undeploying context [/app] Nov 21, 2015 8:52:30 PM org.apache.catalina.startup.ExpandWar deleteDir SEVERE: [C:\tomcat\server\webapps\app\WEB-INF\lib] could not...
I attempted to create a Factory implementation that inherited from an abstract class. The inhabitant generator produced a locator file where scopes were out of sync. The only solution seemed...
Given two run level services that implement the same contract: ``` @Contract interface ServiceContract { } @Service @RunLevel(5) class PrimaryService implements ServiceContract { } @Service @RunLevel(10) class BackupService implements ServiceContract...
Consider the following: ``` public class { @Inject private ServiceGenerator generator; @Inject private AGeneratedService service; ... } ``` If the ServiceGenerator is going to add AGeneratedService to this ServiceLocator, then...
Currently enabling or adding new features to HK2 is not flexible or dynamic. HK2 should emulate Jersey which seems to have the right idea with their [Feature](https://jersey.java.net/apidocs/2.14/jersey/javax/ws/rs/core/Feature.html) and [AutoDiscoverable](https://jersey.java.net/documentation/2.14/user-guide.html#deployment.autodiscoverable) functionality....
The test testUnboundServiceNoLongerGetsNotified hangs on one in twenty runs (approx) in one of our Hudsons. The hang results in the build failing after about 30 minutes
The new HK2 event system introduced all sorts of new possibilities. Deprecate and phaseout the existing listeners (RunLevelListener, ServiceLocatorListener, InstanceLifecycleListener, etc) in favor of the new event system. #### Affected...
I'd like to add additional metadata to a service via annotation. The current implementation of @Metadata requires that an annotation be a qualifier or scope annotation in order to add...
There has been a request for "fail-fast" behavior from HK2\. Since HK2 is a dynamic system, it tends to defer analysis of injection points until the latest possible moment. This...