org.jvnet.hk2.internal
Class AutoActiveDescriptor<T>
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:
- Serializable, ActiveDescriptor<T>, Descriptor, SingleCache<T>
public class AutoActiveDescriptor<T>
- extends AbstractActiveDescriptor<T>
- Author:
- jwells
- See Also:
- Serialized Form
| Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor |
addContractType, addQualifierAnnotation, getCache, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getQualifierAnnotations, getScopeAnnotation, isCacheSet, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified |
| Methods inherited from class org.glassfish.hk2.utilities.DescriptorImpl |
addAdvertisedContract, addMetadata, addQualifier, clearMetadata, equals, getAdvertisedContracts, getBaseDescriptor, getDescriptorType, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, hashCode, isProxiable, pretty, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setBaseDescriptor, setDescriptorType, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setRanking, setScope, setServiceId, toString, writeObject |
| Methods inherited from interface org.glassfish.hk2.api.Descriptor |
getAdvertisedContracts, getBaseDescriptor, getDescriptorType, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, setRanking |
AutoActiveDescriptor
public AutoActiveDescriptor(Class<?> clazz,
Creator<T> creator,
Set<Type> advertisedContracts,
Class<? extends Annotation> scope,
String name,
Set<Annotation> qualifiers,
int ranking,
Boolean proxy,
Map<String,List<String>> metadata)
- Parameters:
clazz - creator - advertisedContracts - scope - name - qualifiers - ranking -
getImplementationClass
public Class<?> getImplementationClass()
create
public T create(ServiceHandle<?> root)
dispose
public void dispose(T instance)
- Specified by:
dispose in interface ActiveDescriptor<T>- Overrides:
dispose in class AbstractActiveDescriptor<T>
getImplementation
public String getImplementation()
- Specified by:
getImplementation in interface Descriptor- Overrides:
getImplementation in class DescriptorImpl
getInjectees
public List<Injectee> getInjectees()
- Specified by:
getInjectees in interface ActiveDescriptor<T>- Overrides:
getInjectees in class AbstractActiveDescriptor<T>
Copyright © 2012 Oracle Corporation. All Rights Reserved.