@Priority(value=10) public class Hk2InjectionManagerFactory extends Object implements org.glassfish.jersey.internal.inject.InjectionManagerFactory
InjectionManager
instance using service loading and automatically initialize injection
manager using parent
or immediately registers binder.Modifier and Type | Field and Description |
---|---|
static String |
HK2_INJECTION_MANAGER_STRATEGY
Hk2 Injection manager strategy.
|
Constructor and Description |
---|
Hk2InjectionManagerFactory() |
Modifier and Type | Method and Description |
---|---|
org.glassfish.jersey.internal.inject.InjectionManager |
create(Object parent)
Load a new injection manager with parent object.
|
static boolean |
isImmediateStrategy()
Check HK2 Strategy property
HK2_INJECTION_MANAGER_STRATEGY and returns true if the current HK2 Strategy is
"immediate". |
public static final String HK2_INJECTION_MANAGER_STRATEGY
Value can be supplied only via java properties, which would typically be done using '-D' parameter,
for example: java -Dorg.glassfish.jersey.hk2.injection.manager.strategy=delayed ...
Valid values are "immediate" and "delayed" and values are case-insensitive.
Default value is "immediate".
public org.glassfish.jersey.internal.inject.InjectionManager create(Object parent)
org.glassfish.jersey.internal.inject.InjectionManagerFactory
create
in interface org.glassfish.jersey.internal.inject.InjectionManagerFactory
parent
- injection manager parent or concrete DI specific object which is compatible with DI provider.public static boolean isImmediateStrategy()
HK2_INJECTION_MANAGER_STRATEGY
and returns true
if the current HK2 Strategy is
"immediate".true
if the current HK2 Strategy is "immediate".Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.