| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private transient T | |
| private transient boolean | |
| private static final Set | |
| private Long | |
| private Long | |
| private boolean | |
| private Set | |
| private final Lock | |
| private final ReentrantReadWriteLock | |
| private Class | |
| private Annotation | |
| private static final long | serialVersionUID
Hides org. |
| private final Lock |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | AbstractActiveDescriptor(Descriptor
The non-null base descriptor to copy values from baseDescriptor)Creates a NON reified ActiveDescriptor based on a copy of the given baseDescriptor. |
| protected | AbstractActiveDescriptor(Set<Type>
The contracts that should be
advertised by this descriptor (may not be null, but may be
empty) advertisedContracts, Class<? extends Annotation> The scope of this descriptor (may not be null) scope, String The name of this descriptor (may be null) name, Set<Annotation> The qualifiers of this descriptor (may not
be null, but may be empty) qualifiers, DescriptorType descriptorType, DescriptorVisibility descriptorVisibility, int The ranking for this descriptor ranking, Boolean whether the descriptor should be proxied proxy, Boolean whether or not to proxy this descriptor
for other services in the same scope proxyForSameScope, String the name of the service used to analyze this class analyzerName, Map<String, List<String>> Metadata to add to this descriptor metadata)This constructor must be called with the information about this descriptor |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContractType(Type
The contract to add. May not be null addMe)Adds an advertised contract to the set of contracts advertised by this descriptor |
| public void | addQualifierAnnotation(Annotation
The fully qualified class name of the qualifier to add. May not be null addMe)Adds the given string to the list of qualifiers |
| public void | dispose(T instance)
Implements org. Disposes this instance. |
| public boolean | equals(Object o)
Overrides org. This equals matches only if the following fields of the descriptor match:
|
| public T | getCache()
Implements org. This can be used for scopes that will only every be created once. |
| public Set | getContractTypes()
Implements org. The set of types that this ActiveDescriptor must produce. |
| public Long | getFactoryLocatorId()
Implements org. If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then this field will return the ServiceId of its associated Factory service. |
| public Long | getFactoryServiceId()
Implements org. If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then this field will return the ServiceId of its associated Factory service. |
| public List | getInjectees()
Implements org. Returns the full list of Injectees this class has. |
| public Set | getQualifierAnnotations()
Implements org. The full set of qualifiers that this ActiveDescriptor provides |
| public Class | getScopeAnnotation()
Implements org. Returns the scope that this ActiveDescriptor belongs to |
| public Annotation | getScopeAsAnnotation()
Implements org. Returns the scope as an |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public boolean | isCacheSet()
Implements org. Returns true if this cache has been set |
| public boolean | isReified()
Implements org. This method returns true if this descriptor has been reified (class loaded). |
| public void | releaseCache()
Implements org. Removes the cached value and makes it such that this cache has not been set |
| public boolean | Returns: true if removeMe was removed from the setThe contract to remove. May not be null removeMe)Removes an advertised contract from the set of contracts advertised by this descriptor |
| private void | |
| public boolean | Returns: true if the given qualifier was removedThe fully qualifier class name of the qualifier to remove. May not be null removeMe)Removes the given qualifier from the list of qualifiers |
| public void | setCache(T cacheMe)
Implements org. Sets the value into the cache |
| public void | setFactoryId(Long
The locatorId of the factory associated with
this method locatorId, Long The serviceId of the factory associated with
this method serviceId)Sets the locator and serviceId for the factory. |
| public void | |
| public void | setName(String name)
Overrides org. Sets the name of this descriptor. |
| public void | setReified(boolean
true if this descriptor should appear reified,
false otherwise reified)This method is called to change the state of the reification of this descriptor |
| public void | setScopeAnnotation(Class<? extends Annotation>
The non-null scope annotation for this service scopeAnnotation)Sets the scope annotation for this descriptor |
| public void | setScopeAsAnnotation(Annotation
The scope as an scopeAnnotation)Annotation. May
not be nullSets the scope as an |
| advertisedContracts | back to summary |
|---|---|
| private Set<Type> advertisedContracts | |
| cachedValue | back to summary |
|---|---|
| private transient T cachedValue | |
| cacheSet | back to summary |
|---|---|
| private transient boolean cacheSet | |
| EMPTY_QUALIFIER_SET | back to summary |
|---|---|
| private static final Set<Annotation> EMPTY_QUALIFIER_SET Hides org. | |
| factoryLocatorId | back to summary |
|---|---|
| private Long factoryLocatorId | |
| factoryServiceId | back to summary |
|---|---|
| private Long factoryServiceId | |
| isReified | back to summary |
|---|---|
| private boolean isReified | |
| qualifiers | back to summary |
|---|---|
| private Set<Annotation> qualifiers Hides org. | |
| rLock | back to summary |
|---|---|
| private final Lock rLock | |
| rwLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock rwLock | |
| scope | back to summary |
|---|---|
| private Class<? extends Annotation> scope | |
| scopeAnnotation | back to summary |
|---|---|
| private Annotation scopeAnnotation | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. For serialization | |
| wLock | back to summary |
|---|---|
| private final Lock wLock | |
| AbstractActiveDescriptor | back to summary |
|---|---|
| public AbstractActiveDescriptor() For serialization | |
| AbstractActiveDescriptor | back to summary |
|---|---|
| protected AbstractActiveDescriptor(Descriptor baseDescriptor) Creates a NON reified ActiveDescriptor based on a copy of the given baseDescriptor. The values from the baseDescriptor will be copied deeply
| |
| AbstractActiveDescriptor | back to summary |
|---|---|
| protected AbstractActiveDescriptor(Set<Type> advertisedContracts, Class<? extends Annotation> scope, String name, Set<Annotation> qualifiers, DescriptorType descriptorType, DescriptorVisibility descriptorVisibility, int ranking, Boolean proxy, Boolean proxyForSameScope, String analyzerName, Map<String, List<String>> metadata) This constructor must be called with the information about this descriptor
| |
| addContractType | back to summary |
|---|---|
| public void addContractType(Type addMe) Adds an advertised contract to the set of contracts advertised by this descriptor
| |
| addQualifierAnnotation | back to summary |
|---|---|
| public void addQualifierAnnotation(Annotation addMe) Adds the given string to the list of qualifiers
| |
| dispose | back to summary |
|---|---|
| public void dispose(T instance) 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
| |
| 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:
| |
| getCache | back to summary |
|---|---|
| public T getCache() Implements org. Doc from org. This can be used for scopes that will only every be created once. The returned value must have been set previously with setCache. If this is called when isCacheSet is false will result in a RuntimeException
| |
| getContractTypes | back to summary |
|---|---|
| public Set 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
| |
| getFactoryLocatorId | back to summary |
|---|---|
| public Long getFactoryLocatorId() Implements org. Doc from org. If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then this field will return the ServiceId of its associated Factory service. Otherwise this method should return null
| |
| getFactoryServiceId | back to summary |
|---|---|
| public Long getFactoryServiceId() Implements org. Doc from org. If this ActiveDescriptor has DescriptorType of PROVIDE_METHOD then this field will return the ServiceId of its associated Factory service. Otherwise this method should return null
| |
| getInjectees | back to summary |
|---|---|
| public List 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 Implements org. Doc from org. The full set of qualifiers that this ActiveDescriptor provides
| |
| getScopeAnnotation | back to summary |
|---|---|
| public Class Implements org. Doc from org. Returns the scope that this ActiveDescriptor belongs to
| |
| getScopeAsAnnotation | back to summary |
|---|---|
| public Annotation getScopeAsAnnotation() Implements org. Doc from org. Returns the scope as an
| |
| 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
| |
| isCacheSet | back to summary |
|---|---|
| public boolean isCacheSet() Implements org. Doc from org. Returns true if this cache has been set
| |
| isReified | back to summary |
|---|---|
| public boolean isReified() 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
| |
| releaseCache | back to summary |
|---|---|
| public void releaseCache() Implements org. Doc from org. Removes the cached value and makes it such that this cache has not been set
| |
| removeContractType | back to summary |
|---|---|
| public boolean removeContractType(Type removeMe) Removes an advertised contract from the set of contracts advertised by this descriptor
| |
| removeNamedQualifier | back to summary |
|---|---|
| private void removeNamedQualifier() | |
| removeQualifierAnnotation | back to summary |
|---|---|
| public boolean removeQualifierAnnotation(Annotation removeMe) Removes the given qualifier from the list of qualifiers
| |
| setCache | back to summary |
|---|---|
| public void setCache(T cacheMe) Implements org. Doc from org. Sets the value into the cache
| |
| setFactoryId | back to summary |
|---|---|
| public void setFactoryId(Long locatorId, Long serviceId) Sets the locator and serviceId for the factory. This descriptor must be of type PROVIDE_METHOD | |
| setImplementationType | back to summary |
|---|---|
| public void setImplementationType(Type t) | |
| setName | back to summary |
|---|---|
| public void setName(String name) Overrides org. Sets the name of this descriptor. Will remove any existing Named qualifier and add a Named qualifier for this name
| |
| setReified | back to summary |
|---|---|
| public void setReified(boolean reified) This method is called to change the state of the reification of this descriptor
| |
| setScopeAnnotation | back to summary |
|---|---|
| public void setScopeAnnotation(Class<? extends Annotation> scopeAnnotation) Sets the scope annotation for this descriptor
| |
| setScopeAsAnnotation | back to summary |
|---|---|
| public void setScopeAsAnnotation(Annotation scopeAnnotation) Sets the scope as an
| |