T - The type of the constantpublic class ConstantActiveDescriptor<T> extends AbstractActiveDescriptor<T>
| Constructor and Description |
|---|
ConstantActiveDescriptor(T theOne,
long locatorId)
Creates a constant active descriptor with the given locator ID
|
ConstantActiveDescriptor(T theOne,
java.util.Set<java.lang.reflect.Type> advertisedContracts,
java.lang.Class<? extends java.lang.annotation.Annotation> scope,
java.lang.String name,
java.util.Set<java.lang.annotation.Annotation> qualifiers,
DescriptorVisibility visibility,
int ranking,
java.lang.Boolean proxy,
java.lang.String analyzerName,
long locatorId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata)
Constructor with more control over the fields of the descriptor
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(ServiceHandle<?> root) |
void |
dispose(T instance) |
T |
getCache() |
java.lang.String |
getImplementation() |
java.lang.Class<?> |
getImplementationClass() |
java.lang.Long |
getLocatorId() |
boolean |
isCacheSet() |
addContractType, addQualifierAnnotation, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReifiedaddAdvertisedContract, addMetadata, addQualifier, clearMetadata, equals, getAdvertisedContracts, getBaseDescriptor, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, hashCode, isProxiable, pretty, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setBaseDescriptor, setClassAnalysisName, setDescriptorType, setDescriptorVisibility, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setRanking, setScope, setServiceId, toString, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAdvertisedContracts, getBaseDescriptor, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, setRankingpublic ConstantActiveDescriptor(T theOne, long locatorId)
theOne - the object to create it fromlocatorId - The id of the locator this is being created forpublic ConstantActiveDescriptor(T theOne, java.util.Set<java.lang.reflect.Type> advertisedContracts, java.lang.Class<? extends java.lang.annotation.Annotation> scope, java.lang.String name, java.util.Set<java.lang.annotation.Annotation> qualifiers, DescriptorVisibility visibility, int ranking, java.lang.Boolean proxy, java.lang.String analyzerName, long locatorId, java.util.Map<java.lang.String,java.util.List<java.lang.String>> metadata)
theOne - advertisedContracts - scope - name - qualifiers - ranking - locatorId - public java.lang.String getImplementation()
getImplementation in interface DescriptorgetImplementation in class DescriptorImplpublic java.lang.Long getLocatorId()
getLocatorId in interface DescriptorgetLocatorId in class DescriptorImplpublic T getCache()
getCache in interface SingleCache<T>getCache in class AbstractActiveDescriptor<T>public boolean isCacheSet()
isCacheSet in interface SingleCache<T>isCacheSet in class AbstractActiveDescriptor<T>public java.lang.Class<?> getImplementationClass()
public T create(ServiceHandle<?> root)
public void dispose(T instance)
dispose in interface ActiveDescriptor<T>dispose in class AbstractActiveDescriptor<T>Copyright © 2013 Oracle Corporation. All Rights Reserved.