@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface HK2
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Binder>[] |
binders
A list of binders that should be loaded.
|
boolean |
enableEvents
If true then events will be enabled
|
boolean |
enableImmediate
If true then the Immediate scope will be enabled
in the associated service locator
|
boolean |
enableInheritableThread
If true then the InheritableThread scope will be enabled in the
associated service locator
|
boolean |
enableLookupExceptions
If true then the lookup exceptions will be thrown
back to the caller
|
boolean |
enablePerThread
If true then the PerThread scope will be enabled
in the associated service locator
|
boolean |
populate
Create a service locator and populate it with services defined in
"META-INF/hk2-locator/default" inhabitant files found in the classpath.
|
String |
value
The name of the service locator that will be used.
|
public abstract String value
public abstract boolean populate
public abstract boolean enablePerThread
public abstract boolean enableInheritableThread
public abstract boolean enableImmediate
Copyright © 2009–2023 Oracle Corporation. All rights reserved.