| Modifier and Type | Method and Description |
|---|---|
| public DescriptorBuilder | 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 DescriptorBuilder | 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 DescriptorImpl | Returns: The descriptor that has been built up with this DescriptorBuilderGenerates a descriptor that can be used in binding operations |
| public FactoryDescriptors | Returns: The descriptor that has been built up with this DescriptorBuilderGenerates a factory descriptor that can be used in binding operations. |
| public FactoryDescriptors | Returns: The descriptor that has been built up with this DescriptorBuilderThe scope the factory service itself is in. factoryScope)Generates a factory descriptor that can be used in binding operations. |
| public FactoryDescriptors | Returns: The descriptor that has been built up with this DescriptorBuilderThe scope the factory service itself is in. If this is null the
PerLookup scope will be used factoryScope)Generates a factory descriptor that can be used in binding operations. |
| public DescriptorBuilder | |
| public DescriptorBuilder | |
| public DescriptorBuilder | 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 DescriptorBuilder | |
| public DescriptorBuilder | 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 DescriptorBuilder | |
| public DescriptorBuilder | Returns: A DescriptorBuilder with the given rankThe rank to be associated with this descriptor. rank)The rank to be associated with this descriptor. |
| public DescriptorBuilder | 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 DescriptorBuilder | 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 DescriptorBuilder | 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 proxy even when injecting into the same scope). |
| public DescriptorBuilder | Returns: A DescriptorBuilder with the proxyForSameScope field set to the given valueif true then this descriptor will be proxied
even when being injected into the same scope,
if false then this descriptor will NOT be proxied when injected
into a service of the same scope proxyForSameScope)This will cause the isProxyForSameScope field of the returned descriptor to return the given value. |
| public DescriptorBuilder | 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 DescriptorBuilder | Returns: A DescriptorBuilder with the given annotationThe fully qualified class name of an annotation to be
associated with this descriptor annotation)A qualifier to be associated with this descriptor object |
| public DescriptorBuilder | |
| public DescriptorBuilder | |
| public DescriptorBuilder | 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 DescriptorBuilder analyzeWith(String serviceName) Call this if the descriptor should be analyzed with the
| |
| andLoadWith | back to summary |
|---|---|
| public DescriptorBuilder andLoadWith(HK2Loader loader) throws IllegalArgumentException Call this if this descriptor should be loaded with the given HK2Loader
| |
| build | back to summary |
|---|---|
| public DescriptorImpl build() throws IllegalArgumentException Generates a descriptor that can be used in binding operations
| |
| buildFactory | back to summary |
|---|---|
| public FactoryDescriptors buildFactory() throws IllegalArgumentException Generates a factory descriptor that can be used in binding operations. The generated factory service will have no name, no qualifiers and the same metadata as given to this builder. The factory will be put into PerLookup scope
| |
| buildFactory | back to summary |
|---|---|
| public FactoryDescriptors buildFactory(String factoryScope) throws IllegalArgumentException Generates a factory descriptor that can be used in binding operations. The generated factory service will have no name, no qualifiers and the same metadata as given to this builder. The generated service will have had the implementation class removed from its set of advertised contracts
| |
| buildFactory | back to summary |
|---|---|
| public FactoryDescriptors buildFactory(Class<? extends Annotation> factoryScope) throws IllegalArgumentException Generates a factory descriptor that can be used in binding operations. The generated factory service will have no name, no qualifiers and the same metadata as given to this builder. The generated service will have had the implementation class removed from its set of advertised contracts
| |
| has | back to summary |
|---|---|
| public DescriptorBuilder has(String key, String value) throws IllegalArgumentException An instance of data to be associated with this descriptor
| |
| has | back to summary |
|---|---|
| public DescriptorBuilder has(String key, List<String> values) throws IllegalArgumentException An instance of data to be associated with this descriptor
| |
| in | back to summary |
|---|---|
| public DescriptorBuilder 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.
| |
| in | back to summary |
|---|---|
| public DescriptorBuilder in(String 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 DescriptorBuilder localOnly() This will cause the descriptorVisibility field of the returned descriptor to return LOCAL
| |
| named | back to summary |
|---|---|
| public DescriptorBuilder 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 DescriptorBuilder ofRank(int rank) The rank to be associated with this descriptor. The last rank bound wins
| |
| proxy | back to summary |
|---|---|
| public DescriptorBuilder 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 DescriptorBuilder proxy(boolean forceProxy) This will cause the isProxiable field of the returned descriptor to return the given value.
| |
| proxyForSameScope | back to summary |
|---|---|
| public DescriptorBuilder proxyForSameScope() This will cause the isProxyForSameScope field of the returned descriptor to return true (it will force this descriptor to proxy even when injecting into the same scope).
| |
| proxyForSameScope | back to summary |
|---|---|
| public DescriptorBuilder proxyForSameScope(boolean proxyForSameScope) This will cause the isProxyForSameScope field of the returned descriptor to return the given value.
| |
| qualifiedBy | back to summary |
|---|---|
| public DescriptorBuilder qualifiedBy(Annotation annotation) throws IllegalArgumentException A qualifier to be associated with this descriptor object. It is
dangerous to use this method with a ghost annotation (one that is
not on the object) if that annotation has fields, as these
fields will NOT survive being put into the
| |
| qualifiedBy | back to summary |
|---|---|
| public DescriptorBuilder qualifiedBy(String annotation) throws IllegalArgumentException A qualifier to be associated with this descriptor object
| |
| to | back to summary |
|---|---|
| public DescriptorBuilder to(Class<?> contract) throws IllegalArgumentException A contract to be associated with this descriptor object.
| |
| to | back to summary |
|---|---|
| public DescriptorBuilder to(String contract) throws IllegalArgumentException A contract to be associated with this descriptor object.
| |
| visibility | back to summary |
|---|---|
| public DescriptorBuilder visibility(DescriptorVisibility visibility) This will set the descriptorVisibility field of the returned descriptor
| |