T - The type of the constantpublic class ConstantActiveDescriptor<T> extends AbstractActiveDescriptor<T>
| Constructor and Description |
|---|
ConstantActiveDescriptor()
For serializable
|
ConstantActiveDescriptor(T theOne,
Set<Type> advertisedContracts,
Class<? extends Annotation> scope,
String name,
Set<Annotation> qualifiers,
DescriptorVisibility descriptorVisibility,
Boolean proxy,
Boolean proxyForSameScope,
String classAnalysisName,
Map<String,List<String>> metadata)
Creates the constant descriptor
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
T |
getCache()
This can be used for scopes that will only every be created once.
|
String |
getImplementation()
Returns the fully qualified class
name of the implementation
class.
|
Class<?> |
getImplementationClass()
The implementation class that should be used
to generate new instances of this descriptor.
|
boolean |
isCacheSet()
Returns true if this cache has been set
|
addContractType, addQualifierAnnotation, dispose, equals, getContractTypes, getFactoryLocatorId, getFactoryServiceId, getInjectees, getQualifierAnnotations, getScopeAnnotation, hashCode, isReified, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReifiedaddAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, 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, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRankingpublic ConstantActiveDescriptor()
public ConstantActiveDescriptor(T theOne, Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorVisibility descriptorVisibility, Boolean proxy, Boolean proxyForSameScope, String classAnalysisName, Map<String,List<String>> metadata)
theOne - May not be nulladvertisedContracts - scope - name - qualifiers - public String getImplementation()
DescriptorgetImplementation in interface DescriptorgetImplementation in class DescriptorImplpublic T getCache()
SingleCachegetCache in interface SingleCache<T>getCache in class AbstractActiveDescriptor<T>public boolean isCacheSet()
SingleCacheisCacheSet in interface SingleCache<T>isCacheSet in class AbstractActiveDescriptor<T>public Class<?> getImplementationClass()
ActiveDescriptorIf the class returned is a Factory, then the factory is used to create instances. In this case the system will get an instance of the factory and use it to create the instances
public T create(ServiceHandle<?> root)
ActiveDescriptorroot - The root service handle, which can be used
to associated all the PerLookup objects with this creationCopyright © 2009-2014 Oracle Corporation. All Rights Reserved.