Package | Description |
---|---|
org.glassfish.hk2.internal | |
org.glassfish.hk2.utilities |
Modifier and Type | Class and Description |
---|---|
class |
DescriptorBuilderImpl
This is a simple implementation of the
DescriptorBuilder |
Modifier and Type | Method and Description |
---|---|
DescriptorBuilder |
DescriptorBuilderImpl.analyzeWith(String serviceName) |
DescriptorBuilder |
DescriptorBuilderImpl.andLoadWith(HK2Loader loader) |
DescriptorBuilder |
DescriptorBuilderImpl.has(String key,
List<String> values) |
DescriptorBuilder |
DescriptorBuilderImpl.has(String key,
String value) |
DescriptorBuilder |
DescriptorBuilderImpl.in(Class<? extends Annotation> scope) |
DescriptorBuilder |
DescriptorBuilderImpl.in(String scope) |
DescriptorBuilder |
DescriptorBuilderImpl.localOnly() |
DescriptorBuilder |
DescriptorBuilderImpl.named(String name) |
DescriptorBuilder |
DescriptorBuilderImpl.ofRank(int rank) |
DescriptorBuilder |
DescriptorBuilderImpl.proxy() |
DescriptorBuilder |
DescriptorBuilderImpl.proxy(boolean forceProxy) |
DescriptorBuilder |
DescriptorBuilderImpl.proxyForSameScope() |
DescriptorBuilder |
DescriptorBuilderImpl.proxyForSameScope(boolean proxyForSameScope) |
DescriptorBuilder |
DescriptorBuilderImpl.qualifiedBy(Annotation annotation) |
DescriptorBuilder |
DescriptorBuilderImpl.qualifiedBy(String annotation) |
DescriptorBuilder |
DescriptorBuilderImpl.to(Class<?> contract) |
DescriptorBuilder |
DescriptorBuilderImpl.to(String contract) |
DescriptorBuilder |
DescriptorBuilderImpl.visibility(DescriptorVisibility visibility) |
Modifier and Type | Method and Description |
---|---|
DescriptorBuilder |
DescriptorBuilder.analyzeWith(String serviceName)
Call this if the descriptor should be analyzed with the
ClassAnalyzer service of the given name |
DescriptorBuilder |
DescriptorBuilder.andLoadWith(HK2Loader loader)
Call this if this descriptor should be loaded with the given HK2Loader
|
DescriptorBuilder |
DescriptorBuilder.has(String key,
List<String> values)
An instance of data to be associated with this descriptor
|
DescriptorBuilder |
DescriptorBuilder.has(String key,
String value)
An instance of data to be associated with this descriptor
|
DescriptorBuilder |
DescriptorBuilder.in(Class<? extends Annotation> scope)
A scope to be associated with this descriptor object.
|
DescriptorBuilder |
DescriptorBuilder.in(String scope)
A scope to be associated with this descriptor object.
|
static DescriptorBuilder |
BuilderHelper.link(Class<?> implementationClass)
This method links an implementation class with a
DescriptorBuilder , to
be used to further build the Descriptor . |
static DescriptorBuilder |
BuilderHelper.link(Class<?> implementationClass,
boolean addToContracts)
This method links an implementation class with a
DescriptorBuilder , to
be used to further build the Descriptor |
static DescriptorBuilder |
BuilderHelper.link(String implementationClass)
This method links an implementation class with a
DescriptorBuilder , to
be used to further build the Descriptor . |
static DescriptorBuilder |
BuilderHelper.link(String implementationClass,
boolean addToContracts)
This method links an implementation class with a
DescriptorBuilder , to
be used to further build the Descriptor . |
DescriptorBuilder |
DescriptorBuilder.localOnly()
This will cause the descriptorVisibility field of the returned
descriptor to return LOCAL
|
DescriptorBuilder |
DescriptorBuilder.named(String name)
The name for this descriptor object.
|
DescriptorBuilder |
DescriptorBuilder.ofRank(int rank)
The rank to be associated with this descriptor.
|
DescriptorBuilder |
DescriptorBuilder.proxy()
This will cause the isProxiable field of the returned
descriptor to return true (it will force this
descriptor to use proxies).
|
DescriptorBuilder |
DescriptorBuilder.proxy(boolean forceProxy)
This will cause the isProxiable field of the returned
descriptor to return the given value.
|
DescriptorBuilder |
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).
|
DescriptorBuilder |
DescriptorBuilder.proxyForSameScope(boolean proxyForSameScope)
This will cause the isProxyForSameScope field of the returned
descriptor to return the given value.
|
DescriptorBuilder |
DescriptorBuilder.qualifiedBy(Annotation annotation)
A qualifier to be associated with this descriptor object.
|
DescriptorBuilder |
DescriptorBuilder.qualifiedBy(String annotation)
A qualifier to be associated with this descriptor object
|
DescriptorBuilder |
DescriptorBuilder.to(Class<?> contract)
A contract to be associated with this descriptor object.
|
DescriptorBuilder |
DescriptorBuilder.to(String contract)
A contract to be associated with this descriptor object.
|
DescriptorBuilder |
DescriptorBuilder.visibility(DescriptorVisibility visibility)
This will set the descriptorVisibility field of the returned
descriptor
|
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.