public abstract class DelegatingAttributeLoader<T,L extends AttributeLoader<T>> extends Object implements AttributeLoader<T>
Modifier | Constructor and Description |
---|---|
protected |
DelegatingAttributeLoader(L loader) |
Modifier and Type | Method and Description |
---|---|
protected L |
delegate() |
Set<AttributeSpec<?>> |
getAttributeDependencies()
Returns attributes that need to be loaded prior to calling this loader's loading function.
|
AttributeSpec<T> |
getAttributeSpec()
Returns the spec for which this loader loads values.
|
AttributeCachingStrategy |
getCachingStrategy()
Indicates how the values provided by this loader should be cached.
|
Set<AttributeContextDependency> |
getContextDependencies()
Indicates which context values are used to calculate the value of the attribute.
|
TrailItemSet |
getGlobalTrail()
Returns global trail.
|
String |
toString() |
protected DelegatingAttributeLoader(@NotNull L loader)
@NotNull protected L delegate()
@NotNull public AttributeSpec<T> getAttributeSpec()
AttributeLoader
Returns the spec for which this loader loads values.
The returned value must be the same throughout the lifetime of the object.
getAttributeSpec
in interface AttributeLoader<T>
@Nullable public Set<AttributeSpec<?>> getAttributeDependencies()
AttributeLoader
Returns attributes that need to be loaded prior to calling this loader's loading function.
The returned value must be the same throughout the lifetime of the object.
getAttributeDependencies
in interface AttributeLoader<T>
null
if there are noneAttributeLoaderContext.getDependencyValue(com.almworks.jira.structure.api.attribute.AttributeSpec<V>)
@Nullable public Set<AttributeContextDependency> getContextDependencies()
AttributeLoader
Indicates which context values are used to calculate the value of the attribute.
For example, if the calculated value depends on the current user, the return value from this method must include
AttributeContextDependency.USER
.
The returned value must be the same throughout the lifetime of the object.
getContextDependencies
in interface AttributeLoader<T>
null
if there are none@Nullable public AttributeCachingStrategy getCachingStrategy()
AttributeLoader
Indicates how the values provided by this loader should be cached.
The returned value must be the same throughout the lifetime of the object.
getCachingStrategy
in interface AttributeLoader<T>
null
has the same effect as AttributeCachingStrategy.MAY
@Nullable public TrailItemSet getGlobalTrail()
AttributeLoader
Returns global trail. When an item from a global trail changes, all values calculated for this attribute will be invalidated and will need to be recalculated.
The returned value must be the same throughout the lifetime of the object.
getGlobalTrail
in interface AttributeLoader<T>
null
if noneCopyright © 2024 Tempo Software. All Rights Reserved.