| Modifier and Type | Field and Description |
|---|---|
| public static final String | ALIAS_FREE_DESCRIPTOR
This is the value the metadata field ALIAS_METADATA_MARKER will take if the descriptor being aliased does not have a locator id or a service id |
| public static final String | ALIAS_METADATA_MARKER
This will be put in all Alias descriptors. |
| private String | contract
The contract type of this descriptor. |
| private ActiveDescriptor | descriptor
The descriptor that this descriptor will alias. |
| private static final Set | EMPTY_ANNOTATION_SET
Empty set of annotations used to construct this descriptor. |
| private static final Set | EMPTY_CONTRACT_SET
Empty set of contracts used to construct this descriptor. |
| private boolean | initialized
Indicates whether or not this descriptor has been initialized. |
| private ServiceLocator | locator
The service locator. |
| private final ReentrantLock | |
| private Set | qualifierNames
The set of qualifier names for this descriptor. |
| private Set | qualifiers
Hides org. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AliasDescriptor(ServiceLocator
the service locator locator, ActiveDescriptor<T> the descriptor to be aliased descriptor, String the contact contract, String the name name)Construct an AliasDescriptor. |
| ALIAS_FREE_DESCRIPTOR | back to summary |
|---|---|
| public static final String ALIAS_FREE_DESCRIPTOR This is the value the metadata field ALIAS_METADATA_MARKER will take if the descriptor being aliased does not have a locator id or a service id | |
| ALIAS_METADATA_MARKER | back to summary |
|---|---|
| public static final String ALIAS_METADATA_MARKER This will be put in all Alias descriptors. The value
will be ALIAS_FREE_DESCRIPTOR if the descritpor being
aliased does not have a locator and service id. If
the descriptor being aliased does have a locator and
service id the value will be | |
| contract | back to summary |
|---|---|
| private String contract The contract type of this descriptor. | |
| descriptor | back to summary |
|---|---|
| private ActiveDescriptor<T> descriptor The descriptor that this descriptor will alias. | |
| EMPTY_ANNOTATION_SET | back to summary |
|---|---|
| private static final Set<Annotation> EMPTY_ANNOTATION_SET Empty set of annotations used to construct this descriptor. | |
| EMPTY_CONTRACT_SET | back to summary |
|---|---|
| private static final Set<Type> EMPTY_CONTRACT_SET Empty set of contracts used to construct this descriptor. | |
| initialized | back to summary |
|---|---|
| private boolean initialized Indicates whether or not this descriptor has been initialized. | |
| locator | back to summary |
|---|---|
| private ServiceLocator locator The service locator. | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| qualifierNames | back to summary |
|---|---|
| private Set<String> qualifierNames The set of qualifier names for this descriptor. | |
| qualifiers | back to summary |
|---|---|
| private Set<Annotation> qualifiers Hides org. The set of annotations for this descriptor. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| AliasDescriptor | back to summary |
|---|---|
| public AliasDescriptor() For serialization | |
| AliasDescriptor | back to summary |
|---|---|
| public AliasDescriptor(ServiceLocator locator, ActiveDescriptor<T> descriptor, String contract, String name) Construct an AliasDescriptor.
| |
| create | back to summary |
|---|---|
| public T create(ServiceHandle<?> root) Implements org. Doc from org. Creates an instance of the ActiveDescriptor. All of the Injectee's must be created prior to instantiation, and associated with the ExtendedProvider so that they can be destroyed properly
| |
| dispose | back to summary |
|---|---|
| public void dispose(T instance) Overrides org. Implements org. Doc from org. Disposes this instance. All the PerLookup objects that were created for this instance will be destroyed after this object has been destroyed
| |
| ensureInitialized | back to summary |
|---|---|
| private void ensureInitialized() Ensure that this descriptor has been initialized.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Doc from org. This equals matches only if the following fields of the descriptor match:
| |
| getAliasMetadataValue | back to summary |
|---|---|
| private static String getAliasMetadataValue(ActiveDescriptor<?> descriptor) | |
| getContractTypes | back to summary |
|---|---|
| public Set Overrides org. Implements org. Doc from org. The set of types that this ActiveDescriptor must produce. These types may be Classes or ParameterizedTypes, and may be no other subclass of Type
| |
| getDescriptor | back to summary |
|---|---|
| public ActiveDescriptor Get the descriptor being aliased.
| |
| getImplementation | back to summary |
|---|---|
| public String getImplementation() Overrides org. Implements org. Doc from org. Returns the fully qualified class name of the implementation class. If this is a factory descriptor then this will return the fully qualified name of the class implementing the factory interface.
| |
| getImplementationClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. The implementation class that should be used to generate new instances of this descriptor. 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
| |
| getImplementationType | back to summary |
|---|---|
| public Type getImplementationType() Implements org. Doc from org. If known the Type of the implementation. If unknown will
return the same as
| |
| getInjectees | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Returns the full list of Injectees this class has. These references will be resolved prior to the class being constructed, even if these injectees are field or method injectees. If this descriptor is describing a factory created type then this list must have zero length
| |
| getQualifierAnnotations | back to summary |
|---|---|
| public Set Overrides org. Implements org. Doc from org. The full set of qualifiers that this ActiveDescriptor provides
| |
| getQualifiers | back to summary |
|---|---|
| public Set Overrides org. Implements org. Doc from org. Returns all of the annotation classes that this object should be registered with or looked up by
| |
| getScopeAnnotation | back to summary |
|---|---|
| public Class Overrides org. Implements org. Doc from org. Returns the scope that this ActiveDescriptor belongs to
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isReified | back to summary |
|---|---|
| public boolean isReified() Overrides org. Implements org. Doc from org. This method returns true if this descriptor has been reified (class loaded). If this method returns false then the other methods in this interface will throw an IllegalStateException. Once this method returns true it may be
| |