public class CrossOverDescriptor<T> extends AbstractActiveDescriptor<T>
Constructor and Description |
---|
CrossOverDescriptor(ServiceLocator local,
ActiveDescriptor<T> localService) |
Modifier and Type | Method and Description |
---|---|
T |
create(ServiceHandle<?> root)
Creates an instance of the ActiveDescriptor.
|
void |
dispose(T instance)
Disposes this instance.
|
Set<Type> |
getContractTypes()
The set of types that this ActiveDescriptor must produce.
|
Long |
getFactoryLocatorId()
If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then
this field will return the ServiceId of its associated Factory
service.
|
Long |
getFactoryServiceId()
If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then
this field will return the ServiceId of its associated Factory
service.
|
Class<?> |
getImplementationClass()
The implementation class that should be used
to generate new instances of this descriptor.
|
Type |
getImplementationType()
If known the Type of the implementation.
|
List<Injectee> |
getInjectees()
Returns the full list of Injectees this class has.
|
Set<Annotation> |
getQualifierAnnotations()
The full set of qualifiers that this ActiveDescriptor
provides
|
Class<? extends Annotation> |
getScopeAnnotation()
Returns the scope that this ActiveDescriptor belongs to
|
Annotation |
getScopeAsAnnotation()
Returns the scope as an
Annotation
implementation that this ActiveDescriptor belongs to |
boolean |
isReified()
This method returns true if this descriptor has been reified
(class loaded).
|
void |
setImplementationType(Type t) |
addContractType, addQualifierAnnotation, equals, getCache, hashCode, isCacheSet, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation
addAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, descriptorEquals, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, 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, writeObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
public CrossOverDescriptor(ServiceLocator local, ActiveDescriptor<T> localService)
public boolean isReified()
isReified
in interface ActiveDescriptor<T>
isReified
in class AbstractActiveDescriptor<T>
public Class<?> getImplementationClass()
ActiveDescriptor
If 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 Type getImplementationType()
ActiveDescriptor
ActiveDescriptor.getImplementationClass()
public void setImplementationType(Type t)
setImplementationType
in class AbstractActiveDescriptor<T>
public Set<Type> getContractTypes()
ActiveDescriptor
getContractTypes
in interface ActiveDescriptor<T>
getContractTypes
in class AbstractActiveDescriptor<T>
public Annotation getScopeAsAnnotation()
ActiveDescriptor
Annotation
implementation that this ActiveDescriptor belongs togetScopeAsAnnotation
in interface ActiveDescriptor<T>
getScopeAsAnnotation
in class AbstractActiveDescriptor<T>
Annotation
public Class<? extends Annotation> getScopeAnnotation()
ActiveDescriptor
getScopeAnnotation
in interface ActiveDescriptor<T>
getScopeAnnotation
in class AbstractActiveDescriptor<T>
public Set<Annotation> getQualifierAnnotations()
ActiveDescriptor
getQualifierAnnotations
in interface ActiveDescriptor<T>
getQualifierAnnotations
in class AbstractActiveDescriptor<T>
public List<Injectee> getInjectees()
ActiveDescriptor
If 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 Long getFactoryServiceId()
ActiveDescriptor
getFactoryServiceId
in interface ActiveDescriptor<T>
getFactoryServiceId
in class AbstractActiveDescriptor<T>
public Long getFactoryLocatorId()
ActiveDescriptor
getFactoryLocatorId
in interface ActiveDescriptor<T>
getFactoryLocatorId
in class AbstractActiveDescriptor<T>
public T create(ServiceHandle<?> root)
ActiveDescriptor
root
- The root service handle, which can be used
to associated all the PerLookup objects with this creationpublic void dispose(T instance)
ActiveDescriptor
dispose
in interface ActiveDescriptor<T>
dispose
in class AbstractActiveDescriptor<T>
instance
- The instance to destroyCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.