Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit c492d6c

Browse files
committed
JERSEY-2291: Enable HK2 Immediate scope to support HK2 @Immediate services.
1 parent a7f358a commit c492d6c

File tree

1 file changed

+1
-0
lines changed
  • core-common/src/main/java/org/glassfish/jersey/internal/inject

1 file changed

+1
-0
lines changed

core-common/src/main/java/org/glassfish/jersey/internal/inject/Injections.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private static ServiceLocator _createLocator(final String name, final ServiceLoc
139139

140140
result.setNeutralContextClassLoader(false);
141141
ServiceLocatorUtilities.enablePerThreadScope(result);
142+
ServiceLocatorUtilities.enableImmediateScope(result);
142143

143144
for (final Binder binder : binders) {
144145
bind(result, binder);

0 commit comments

Comments
 (0)