private static class ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T> extends AbstractActiveDescriptor<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
implementationClass |
private java.lang.reflect.Type |
implementationType |
private static long |
serialVersionUID
For serialization
|
Modifier | Constructor and Description |
---|---|
|
BuiltActiveDescriptor()
For serialization
|
private |
BuiltActiveDescriptor(java.lang.Class<?> implementationClass,
java.util.Set<java.lang.reflect.Type> advertisedContracts,
java.lang.annotation.Annotation scopeAnnotation,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
DescriptorType descriptorType,
DescriptorVisibility descriptorVisibility,
int ranking,
java.lang.Boolean proxy,
java.lang.Boolean proxyForSameScope,
java.lang.String classAnalysisName,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata,
HK2Loader loader,
java.lang.reflect.Type implementationType) |
Modifier and Type | Method and Description |
---|---|
T |
create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
java.lang.Class<?> |
getImplementationClass()
The implementation class that should be used
to generate new instances of this descriptor.
|
java.lang.reflect.Type |
getImplementationType()
If known the Type of the implementation.
|
void |
setImplementationType(java.lang.reflect.Type t) |
addContractType, addQualifierAnnotation, dispose, equals, getCache, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, getScopeAsAnnotation, hashCode, isCacheSet, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation
addAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, descriptorEquals, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, pretty, readExternal, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setClassAnalysisName, setDescriptorType, setDescriptorVisibility, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setProxyForSameScope, setRanking, setScope, setServiceId, toString, writeExternal, writeObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
private static final long serialVersionUID
private java.lang.Class<?> implementationClass
private java.lang.reflect.Type implementationType
public BuiltActiveDescriptor()
private BuiltActiveDescriptor(java.lang.Class<?> implementationClass, java.util.Set<java.lang.reflect.Type> advertisedContracts, java.lang.annotation.Annotation scopeAnnotation, java.lang.Class<? extends java.lang.annotation.Annotation> scope, java.lang.String name, java.util.Set<java.lang.annotation.Annotation> qualifiers, DescriptorType descriptorType, DescriptorVisibility descriptorVisibility, int ranking, java.lang.Boolean proxy, java.lang.Boolean proxyForSameScope, java.lang.String classAnalysisName, java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata, HK2Loader loader, java.lang.reflect.Type implementationType)
public java.lang.Class<?> getImplementationClass()
ActiveDescriptor
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
public java.lang.reflect.Type getImplementationType()
ActiveDescriptor
ActiveDescriptor.getImplementationClass()
public T create(ServiceHandle<?> root)
ActiveDescriptor
root
- The root service handle, which can be used
to associated all the PerLookup objects with this creationpublic void setImplementationType(java.lang.reflect.Type t)
setImplementationType
in class AbstractActiveDescriptor<T>