public class AliasDescriptor<T> extends AbstractActiveDescriptor<T>
| Constructor and Description |
|---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
java.lang.String contract,
java.lang.String name)
Construct an AliasDescriptor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
void |
dispose(T instance)
Disposes this instance.
|
java.util.Set<java.lang.reflect.Type> |
getContractTypes()
The set of types that this ActiveDescriptor must produce.
|
ActiveDescriptor<T> |
getDescriptor()
Get the descriptor being aliased.
|
java.lang.String |
getImplementation()
Returns the fully qualified class
name of the implementation
class.
|
java.lang.Class<?> |
getImplementationClass()
The implementation class that should be used
to generate new instances of this descriptor.
|
java.util.List<Injectee> |
getInjectees()
Returns the full list of Injectees this class has.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifierAnnotations()
The full set of qualifiers that this ActiveDescriptor
provides
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScopeAnnotation()
Returns the scope that this ActiveDescriptor belongs to
|
boolean |
isReified()
This method returns true if this descriptor has been reified
(class loaded).
|
addContractType, addQualifierAnnotation, getCache, getFactoryLocatorId, getFactoryServiceId, isCacheSet, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReifiedaddAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, equals, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, hashCode, isProxiable, pretty, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setClassAnalysisName, setDescriptorType, setDescriptorVisibility, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setRanking, setScope, setServiceId, toString, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, setRankingpublic AliasDescriptor(ServiceLocator locator, ActiveDescriptor<T> descriptor, java.lang.String contract, java.lang.String name)
locator - the service locatordescriptor - the descriptor to be aliasedcontract - the contactname - the namepublic java.lang.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 creationpublic boolean isReified()
ActiveDescriptorisReified in interface ActiveDescriptor<T>isReified in class AbstractActiveDescriptor<T>public java.lang.String getImplementation()
DescriptorgetImplementation in interface DescriptorgetImplementation in class DescriptorImplpublic java.util.Set<java.lang.reflect.Type> getContractTypes()
ActiveDescriptorgetContractTypes in interface ActiveDescriptor<T>getContractTypes in class AbstractActiveDescriptor<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScopeAnnotation()
ActiveDescriptorgetScopeAnnotation in interface ActiveDescriptor<T>getScopeAnnotation in class AbstractActiveDescriptor<T>public java.util.Set<java.lang.annotation.Annotation> getQualifierAnnotations()
ActiveDescriptorgetQualifierAnnotations in interface ActiveDescriptor<T>getQualifierAnnotations in class AbstractActiveDescriptor<T>public java.util.List<Injectee> getInjectees()
ActiveDescriptorIf this descriptor is describing a factory created type then this list must have zero length
getInjectees in interface ActiveDescriptor<T>getInjectees in class AbstractActiveDescriptor<T>public void dispose(T instance)
ActiveDescriptordispose in interface ActiveDescriptor<T>dispose in class AbstractActiveDescriptor<T>instance - The instance to destroypublic ActiveDescriptor<T> getDescriptor()
Copyright © 2013 Oracle Corporation. All Rights Reserved.