java.lang.Object
org.glassfish.hk2.utilities.DescriptorImpl
org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
org.jvnet.hk2.internal.ConstantActiveDescriptor<T>
- Type Parameters:
T- The type of the constant
- All Implemented Interfaces:
Externalizable,Serializable,org.glassfish.hk2.api.ActiveDescriptor<T>,org.glassfish.hk2.api.Descriptor,org.glassfish.hk2.api.SingleCache<T>
public class ConstantActiveDescriptor<T>
extends org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
- Author:
- jwells
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFor serializationConstantActiveDescriptor(T theOne, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, org.glassfish.hk2.api.DescriptorVisibility visibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String analyzerName, long locatorId, Map<String, List<String>> metadata) Constructor with more control over the fields of the descriptorConstantActiveDescriptor(T theOne, ServiceLocatorImpl locator) Creates a constant active descriptor with the given locator -
Method Summary
Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor
addContractType, addQualifierAnnotation, equals, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, getScopeAsAnnotation, hashCode, 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, getLoader, 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, getLoader, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
-
Constructor Details
-
ConstantActiveDescriptor
public ConstantActiveDescriptor()For serialization -
ConstantActiveDescriptor
Creates a constant active descriptor with the given locator- Parameters:
theOne- the object to create it fromlocator- the locator this is being created for
-
ConstantActiveDescriptor
public ConstantActiveDescriptor(T theOne, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, org.glassfish.hk2.api.DescriptorVisibility visibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String analyzerName, long locatorId, Map<String, List<String>> metadata) Constructor with more control over the fields of the descriptor- Parameters:
theOne- The non-null constantadvertisedContracts- its advertised contractsscope- its scopename- its possibly null namequalifiers- its set of qualifiersvisibility- its visibilityranking- its starting rankproxy- can it be proxied (null for default)proxyForSameScope- will it be proxied for the same scope (null for default)analyzerName- The name of the analyzer (null for default)locatorId- its locator parentmetadata- The metadata associated with it
-
-
Method Details
-
getImplementation
- Specified by:
getImplementationin interfaceorg.glassfish.hk2.api.Descriptor- Overrides:
getImplementationin classorg.glassfish.hk2.utilities.DescriptorImpl
-
getLocatorId
- Specified by:
getLocatorIdin interfaceorg.glassfish.hk2.api.Descriptor- Overrides:
getLocatorIdin classorg.glassfish.hk2.utilities.DescriptorImpl
-
getCache
-
isCacheSet
public boolean isCacheSet() -
getImplementationClass
-
getImplementationType
-
setImplementationType
- Overrides:
setImplementationTypein classorg.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
-
create
-
dispose
-