diff --git a/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java b/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java index 34d3d31bdb..82bf7ed4cb 100644 --- a/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java +++ b/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java @@ -102,7 +102,7 @@ public class CommonConfig implements FeatureContext, ExtendedConfig { private final Map immutablePropertiesView; private final Collection immutablePropertyNames; /** - * Configured providers, does not include features and binders. + * Configured providers and binders, does not include features. */ private final ComponentBag componentBag; /** @@ -642,7 +642,7 @@ private Set configureBinders(InjectionManager injectionManager, Set allConfigured = Collections.newSetFromMap(new IdentityHashMap<>()); allConfigured.addAll(configured); - Collection binders = getBinder(configured); + Collection binders = getBinders(configured); if (!binders.isEmpty()) { injectionManager.register(CompositeBinder.wrap(binders)); allConfigured.addAll(binders); @@ -651,7 +651,7 @@ private Set configureBinders(InjectionManager injectionManager, Set getBinder(Set configured) { + private Collection getBinders(Set configured) { return componentBag.getInstances(ComponentBag.BINDERS_ONLY) .stream() .map(CAST_TO_BINDER)