java.lang.Object
org.glassfish.hk2.utilities.DescriptorImpl
org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
org.jvnet.hk2.internal.AutoActiveDescriptor<T>
- Type Parameters:
T- The type from the cache
- All Implemented Interfaces:
Externalizable,Serializable,org.glassfish.hk2.api.ActiveDescriptor<T>,org.glassfish.hk2.api.Descriptor,org.glassfish.hk2.api.SingleCache<T>
public class AutoActiveDescriptor<T>
extends org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
- Author:
- jwells
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFor serializationAutoActiveDescriptor(Class<?> clazz, Creator<T> creator, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, org.glassfish.hk2.api.DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String, List<String>> metadata, org.glassfish.hk2.api.DescriptorType descriptorType, Type clazzType) Constructor with all relevant fields -
Method Summary
Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor
addContractType, addQualifierAnnotation, equals, getCache, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getQualifierAnnotations, getScopeAnnotation, getScopeAsAnnotation, hashCode, isCacheSet, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotationMethods inherited from class org.glassfish.hk2.utilities.DescriptorImpl
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, writeObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.api.Descriptor
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
-
Constructor Details
-
AutoActiveDescriptor
public AutoActiveDescriptor()For serialization -
AutoActiveDescriptor
public AutoActiveDescriptor(Class<?> clazz, Creator<T> creator, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, org.glassfish.hk2.api.DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String, List<String>> metadata, org.glassfish.hk2.api.DescriptorType descriptorType, Type clazzType) Constructor with all relevant fields- Parameters:
clazz- The class of the implementationcreator- The creator to use (factory or clazz)advertisedContracts- The set of advertised contractsscope- The scope of the servicename- The name of the service (may be null)qualifiers- The set of qualifier annotationsdescriptorVisibility- The visibility of this descriptorranking- The initial rankproxy- Whether or not this can be proxied (null for default)proxyForSameScope- Whether or not to proxy within the same scope (null for default)classAnalysisName- The name of the class analyzer (null for default)metadata- The set of metadata associated with this descriptordescriptorType- The type of the descriptor
-
-
Method Details
-
getImplementationClass
-
getImplementationType
-
setImplementationType
- Overrides:
setImplementationTypein classorg.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
-
create
-
dispose
-
getInjectees
-