| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final HashSet | |
| private final Class | |
| private Type | |
| private HK2Loader | |
| private final HashMap | |
| private String | |
| private Boolean | |
| private Boolean | |
| private final HashSet | |
| private int | |
| private Class | |
| private Annotation | |
| private DescriptorVisibility |
| Access | Constructor and Description |
|---|---|
| public | ActiveDescriptorBuilderImpl(Class<?>
The implementation class (may be null) implementation)constructor with the impl class |
| Modifier and Type | Method and Description |
|---|---|
| public ActiveDescriptorBuilder | analyzeWith(String serviceName)
Implements org. Call this if the descriptor should be analyzed with the
|
| public ActiveDescriptorBuilder | andLoadWith(HK2Loader loader)
Implements org. Call this if this descriptor should be loaded with the given HK2Loader |
| public ActiveDescriptorBuilder | asType(Type t)
Implements org. Call this if the parameterized type of the implementation class is known. |
| public <T> AbstractActiveDescriptor | build()
Implements org. Generates a descriptor that can be used in binding operations |
| public <T> AbstractActiveDescriptor | buildFactory()
Implements org.
Deprecated
Generates a descriptor that can be used in binding operations that describes a factorys provide method |
| public <T> AbstractActiveDescriptor | buildProvideMethod()
Implements org. Generates a descriptor that can be used in binding operations that describes a factorys provide method |
| public ActiveDescriptorBuilder | has(String key, String value)
Implements org. An instance of data to be associated with this descriptor |
| public ActiveDescriptorBuilder | has(String key, List<String> values)
Implements org. An instance of data to be associated with this descriptor |
| public ActiveDescriptorBuilder | in(Annotation scopeAnnotation)
Implements org. A scope to be associated with this descriptor object. |
| public ActiveDescriptorBuilder | in(Class<? extends Annotation> scope)
Implements org. A scope to be associated with this descriptor object. |
| public ActiveDescriptorBuilder | localOnly()
Implements org. This will cause the descriptorVisibility field of the returned descriptor to return LOCAL |
| public ActiveDescriptorBuilder | named(String name)
Implements org. The name for this descriptor object. |
| public ActiveDescriptorBuilder | ofRank(int rank)
Implements org. The rank to be associated with this descriptor. |
| public ActiveDescriptorBuilder | proxy()
Implements org. This will cause the isProxiable field of the returned descriptor to return true (it will force this descriptor to use proxies). |
| public ActiveDescriptorBuilder | proxy(boolean forceProxy)
Implements org. This will cause the isProxiable field of the returned descriptor to return the given value. |
| public ActiveDescriptorBuilder | proxyForSameScope()
Implements org. 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). |
| public ActiveDescriptorBuilder | proxyForSameScope(boolean forceProxyForSameScope)
Implements org. This will cause the isProxyForSameScope field of the returned descriptor to return the given value. |
| public ActiveDescriptorBuilder | qualifiedBy(Annotation annotation)
Implements org. A qualifier to be associated with this descriptor object |
| public ActiveDescriptorBuilder | to(Type contract)
Implements org. A contract to be associated with this descriptor object. |
| public ActiveDescriptorBuilder | visibility(DescriptorVisibility visibility)
Implements org. This will set the descriptorVisibility field of the returned descriptor |
| classAnalysisName | back to summary |
|---|---|
| private String classAnalysisName | |
| contracts | back to summary |
|---|---|
| private final HashSet<Type> contracts | |
| implementation | back to summary |
|---|---|
| private final Class<?> implementation | |
| implementationType | back to summary |
|---|---|
| private Type implementationType | |
| loader | back to summary |
|---|---|
| private HK2Loader loader | |
| metadatas | back to summary |
|---|---|
| private final HashMap<String, List<String>> metadatas | |
| name | back to summary |
|---|---|
| private String name | |
| proxy | back to summary |
|---|---|
| private Boolean proxy | |
| proxyForSameScope | back to summary |
|---|---|
| private Boolean proxyForSameScope | |
| qualifiers | back to summary |
|---|---|
| private final HashSet<Annotation> qualifiers | |
| rank | back to summary |
|---|---|
| private int rank | |
| scope | back to summary |
|---|---|
| private Class<? extends Annotation> scope | |
| scopeAnnotation | back to summary |
|---|---|
| private Annotation scopeAnnotation | |
| visibility | back to summary |
|---|---|
| private DescriptorVisibility visibility | |
| ActiveDescriptorBuilderImpl | back to summary |
|---|---|
| public ActiveDescriptorBuilderImpl(Class<?> implementation) constructor with the impl class
| |
| analyzeWith | back to summary |
|---|---|
| public ActiveDescriptorBuilder analyzeWith(String serviceName) Implements org. Doc from org. Call this if the descriptor should be analyzed with the
| |
| andLoadWith | back to summary |
|---|---|
| public ActiveDescriptorBuilder andLoadWith(HK2Loader loader) throws IllegalArgumentException Implements org. Doc from org. Call this if this descriptor should be loaded with the given HK2Loader
| |
| asType | back to summary |
|---|---|
| public ActiveDescriptorBuilder asType(Type t) Implements org. Doc from org. 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 Implements org. Doc from org. Generates a descriptor that can be used in binding operations
| |
| buildFactory | back to summary |
|---|---|
| public <T> AbstractActiveDescriptor Implements org. Doc from org. Deprecated
Generates a descriptor that can be used in binding operations that describes a factorys provide method
| |
| buildProvideMethod | back to summary |
|---|---|
| public <T> AbstractActiveDescriptor Implements org. Doc from org. 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 Implements org. Doc from org. An instance of data to be associated with this descriptor
| |
| has | back to summary |
|---|---|
| public ActiveDescriptorBuilder has(String key, List<String> values) throws IllegalArgumentException Implements org. Doc from org. An instance of data to be associated with this descriptor
| |
| in | back to summary |
|---|---|
| public ActiveDescriptorBuilder in(Annotation scopeAnnotation) throws IllegalArgumentException Implements org. Doc from org. 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 Implements org. Doc from org. 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() Implements org. Doc from org. This will cause the descriptorVisibility field of the returned descriptor to return LOCAL
| |
| named | back to summary |
|---|---|
| public ActiveDescriptorBuilder named(String name) throws IllegalArgumentException Implements org. Doc from org. 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) Implements org. Doc from org. The rank to be associated with this descriptor. The last rank bound wins
| |
| proxy | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxy() Implements org. Doc from org. 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) Implements org. Doc from org. This will cause the isProxiable field of the returned descriptor to return the given value.
| |
| proxyForSameScope | back to summary |
|---|---|
| public ActiveDescriptorBuilder proxyForSameScope() Implements org. Doc from org. 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) Implements org. Doc from org. 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 Implements org. Doc from org. A qualifier to be associated with this descriptor object
| |
| to | back to summary |
|---|---|
| public ActiveDescriptorBuilder to(Type contract) throws IllegalArgumentException Implements org. Doc from org. A contract to be associated with this descriptor object.
| |
| visibility | back to summary |
|---|---|
| public ActiveDescriptorBuilder visibility(DescriptorVisibility visibility) Implements org. Doc from org. This will set the descriptorVisibility field of the returned descriptor
| |
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private Type | |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | |
| private | BuiltActiveDescriptor(Class<?> implementationClass, Set<Type> advertisedContracts, Annotation scopeAnnotation, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorType descriptorType, DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String, List<String>> metadata, HK2Loader loader, Type implementationType)
|
| Modifier and Type | Method and Description |
|---|---|
| public T | create(ServiceHandle<?> root)
Implements org. Creates an instance of the ActiveDescriptor. |
| public Class | getImplementationClass()
Implements org. The implementation class that should be used to generate new instances of this descriptor. |
| public Type | getImplementationType()
Implements org. If known the Type of the implementation. |
| public void |
| implementationClass | back to summary |
|---|---|
| private Class<?> implementationClass | |
| implementationType | back to summary |
|---|---|
| private Type implementationType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| BuiltActiveDescriptor | back to summary |
|---|---|
| public BuiltActiveDescriptor() For serialization
| |
| BuiltActiveDescriptor | back to summary |
|---|---|
| private BuiltActiveDescriptor(Class<?> implementationClass, Set<Type> advertisedContracts, Annotation scopeAnnotation, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorType descriptorType, DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String, List<String>> metadata, HK2Loader loader, Type implementationType) | |
| create | back to summary |
|---|---|
| public T create(ServiceHandle<?> root) Implements org. Doc from org. Creates an instance of the ActiveDescriptor. All of the Injectee's must be created prior to instantiation, and associated with the ExtendedProvider so that they can be destroyed properly
| |
| getImplementationClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. The implementation class that should be used to generate new instances of this descriptor. If the class returned is a Factory, then the factory is used to create instances. In this case the system will get an instance of the factory and use it to create the instances
| |
| getImplementationType | back to summary |
|---|---|
| public Type getImplementationType() Implements org. Doc from org. If known the Type of the implementation. If unknown will
return the same as
| |
| setImplementationType | back to summary |
|---|---|
| public void setImplementationType(Type t) Overrides org.
| |