T - The type of the constantpublic class ConstantActiveDescriptor<T> extends AbstractActiveDescriptor<T>
| Constructor and Description |
|---|
ConstantActiveDescriptor()
For serialization
|
ConstantActiveDescriptor(T theOne,
ServiceLocatorImpl locator)
Creates a constant active descriptor with the given locator ID
|
ConstantActiveDescriptor(T theOne,
Set<Type> advertisedContracts,
Class<? extends Annotation> scope,
String name,
Set<Annotation> qualifiers,
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
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(ServiceHandle<?> root) |
void |
dispose(T instance) |
T |
getCache() |
String |
getImplementation() |
Class<?> |
getImplementationClass() |
Type |
getImplementationType() |
Long |
getLocatorId() |
boolean |
isCacheSet() |
void |
setImplementationType(Type t) |
addContractType, addQualifierAnnotation, equals, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, getScopeAsAnnotation, hashCode, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotationaddAdvertisedContract, 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, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRankingpublic ConstantActiveDescriptor()
public ConstantActiveDescriptor(T theOne, ServiceLocatorImpl locator)
theOne - the object to create it fromlocatorId - The id of the locator this is being created forpublic ConstantActiveDescriptor(T theOne, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorVisibility visibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String analyzerName, long locatorId, Map<String,List<String>> metadata)
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 itpublic String getImplementation()
getImplementation in interface DescriptorgetImplementation in class DescriptorImplpublic 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 Class<?> getImplementationClass()
public Type getImplementationType()
public void setImplementationType(Type t)
setImplementationType in class AbstractActiveDescriptor<T>public T create(ServiceHandle<?> root)
public void dispose(T instance)
dispose in interface ActiveDescriptor<T>dispose in class AbstractActiveDescriptor<T>Copyright © 2009-2017 Oracle Corporation. All Rights Reserved.