jakarta.inject.Qualifier or contracts that are not
marked with org.jvnet.hk2.annotations.Contract . An unreified ActiveDescriptor given
to a bind method need not implement the create or destroy method,
as they are automatically created and destroyed by the system.
| Modifier and Type | Method and Description |
|---|---|
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given analysis servicethe name of the serviceName)org. service
that should be used to analyze this serviceCall this if the descriptor should be analyzed with the
|
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given HK2LoaderThe loader to use with this descriptor loader)Call this if this descriptor should be loaded with the given HK2Loader |
| public ActiveDescriptorBuilder | |
| public <T> AbstractActiveDescriptor | Returns: The descriptor that has been built upGenerates a descriptor that can be used in binding operations |
| public <T> AbstractActiveDescriptor | Returns: The descriptor that has been built up, of type PROVIDE_METHOD
Deprecated
Use buildProvideMethod instead
Generates a descriptor that can be used in binding operations that describes a factorys provide method |
| public <T> AbstractActiveDescriptor | Returns: The descriptor that has been built up, of type PROVIDE_METHODGenerates a descriptor that can be used in binding operations that describes a factorys provide method |
| public ActiveDescriptorBuilder | |
| public ActiveDescriptorBuilder | |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given scopeThe class of the scope this descriptor is to have. scope)A scope to be associated with this descriptor object. |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given scopeThe class of the scope this descriptor is to have. scope)A scope to be associated with this descriptor object. |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the descriptorVisibility field to be set to LOCALThis will cause the descriptorVisibility field of the returned descriptor to return LOCAL |
| public ActiveDescriptorBuilder | |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given rankThe rank to be associated with this descriptor. rank)The rank to be associated with this descriptor. |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the proxiable field set to trueThis will cause the isProxiable field of the returned descriptor to return true (it will force this descriptor to use proxies). |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the proxiable field set to the given valueif true then this descriptor will be proxied,
if false then this descriptor will NOT be proxied forceProxy)This will cause the isProxiable field of the returned descriptor to return the given value. |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the proxyForSameScope field set to trueThis will cause the isProxyForSameScope field of the returned descriptor to return true (it will force this descriptor to use proxies even when injecting into the same scope). |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the proxyForSameScope field set to the given valueif true then this descriptor will be
proxied even if the scope of the injectee is the same,
if false then this descriptor will NOT be proxied, even if the
scope of the injectee is the same forceProxyForSameScope)This will cause the isProxyForSameScope field of the returned descriptor to return the given value. |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the given annotationThe annotation to be associated with this descriptor annotation)A qualifier to be associated with this descriptor object |
| public ActiveDescriptorBuilder | |
| public ActiveDescriptorBuilder | Returns: A DescriptorBuilder with the descriptorVisibility field set to the input valueThe non-null visibility that this descriptor should take visibility)This will set the descriptorVisibility field of the returned descriptor |
| analyzeWith | back to summary |
|---|---|
| public ActiveDescriptorBuilder analyzeWith(String serviceName) Call this if the descriptor should be analyzed with the
| |
| andLoadWith | back to summary |
|---|---|
| public ActiveDescriptorBuilder andLoadWith(HK2Loader loader) throws IllegalArgumentException Call this if this descriptor should be loaded with the given HK2Loader
| |
| asType | back to summary |
|---|---|
| public ActiveDescriptorBuilder asType(Type t) Call this if the parameterized type of the implementation class is known. This may be called with any Type, but only a ParameterizedType based on the implementationClass will work
| |
| build | back to summary |
|---|---|
| public <T> AbstractActiveDescriptor Generates a descriptor that can be used in binding operations
| |
| buildFactory | back to summary |
|---|---|
| public <T> AbstractActiveDescriptor Deprecated Use buildProvideMethod instead Generates a descriptor that can be used in binding operations that describes a factorys provide method
| |
| buildProvideMethod | back to summary |
|---|---|
| public <T> AbstractActiveDescriptor Generates a descriptor that can be used in binding operations that describes a factorys provide method
| |
| has | back to summary |
|---|---|
| public ActiveDescriptorBuilder has(String key, String value) throws IllegalArgumentException An instance of data to be associated with this descriptor
| |
| has | back to summary |
|---|---|
| public ActiveDescriptorBuilder has(String key, List<String> values) throws IllegalArgumentException An instance of data to be associated with this descriptor
| |
| in | back to summary |
|---|---|
| public ActiveDescriptorBuilder in(Annotation scope) throws IllegalArgumentException A scope to be associated with this descriptor object. Note that at the current time a descriptor can only have one scope, hence this method will throw an IllegalArgumentException if in is called more than once.
| |
| in | back to summary |
|---|---|
| public ActiveDescriptorBuilder in(Class<? extends Annotation> scope) throws IllegalArgumentException A scope to be associated with this descriptor object. Note that at the current time a descriptor can only have one scope, hence this method will throw an IllegalArgumentException if in is called more than once.
| |
| localOnly | back to summary |
|---|---|
| public ActiveDescriptorBuilder localOnly() This will cause the descriptorVisibility field of the returned descriptor to return LOCAL
| |
| named | back to summary |
|---|---|
| public ActiveDescriptorBuilder named(String name) throws IllegalArgumentException The name for this descriptor object. Note that at the current time a descriptor can only have one name, hence this method will throw an IllegalArgumentException if named is called more than once.
| |
| ofRank | back to summary |
|---|---|
| public ActiveDescriptorBuilder ofRank(int rank) The rank to be associated with this descriptor. The last rank bound wins
| |
| proxy | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxy() This will cause the isProxiable field of the returned descriptor to return true (it will force this descriptor to use proxies).
| |
| proxy | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxy(boolean forceProxy) This will cause the isProxiable field of the returned descriptor to return the given value.
| |
| proxyForSameScope | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxyForSameScope() This will cause the isProxyForSameScope field of the returned descriptor to return true (it will force this descriptor to use proxies even when injecting into the same scope).
| |
| proxyForSameScope | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxyForSameScope(boolean forceProxyForSameScope) This will cause the isProxyForSameScope field of the returned descriptor to return the given value.
| |
| qualifiedBy | back to summary |
|---|---|
| public ActiveDescriptorBuilder qualifiedBy(Annotation annotation) throws IllegalArgumentException A qualifier to be associated with this descriptor object
| |
| to | back to summary |
|---|---|
| public ActiveDescriptorBuilder to(Type contract) throws IllegalArgumentException A contract to be associated with this descriptor object.
| |
| visibility | back to summary |
|---|---|
| public ActiveDescriptorBuilder visibility(DescriptorVisibility visibility) This will set the descriptorVisibility field of the returned descriptor
| |