public abstract class CompositeAttributeLoader<T,L extends AttributeLoader<T>> extends AbstractAttributeLoader<T>
mySpec
Modifier | Constructor and Description |
---|---|
protected |
CompositeAttributeLoader(AttributeSpec<T> spec,
Collection<L> loaders) |
getAttributeSpec, toString
protected CompositeAttributeLoader(AttributeSpec<T> spec, @NotNull Collection<L> loaders)
public static <T> AttributeLoader<T> create(AttributeSpec<T> spec, List<AttributeLoader<T>> loaders)
@NotNull 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.
null
has the same effect as AttributeCachingStrategy.MAY
@NotNull 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.
null
if there are noneAttributeLoaderContext.getDependencyValue(com.almworks.jira.structure.api.attribute.AttributeSpec<V>)
@NotNull 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.
null
if there are none@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.
null
if nonepublic static <L extends AttributeLoader<?>> AttributeCachingStrategy getCompositeCachingStrategy(AttributeSpec<?> spec, Collection<L> loaders)
public static <L extends AttributeLoader<?>> Set<AttributeSpec<?>> getCompositeDependencies(Collection<L> loaders)
public static <L extends AttributeLoader<?>> Set<AttributeContextDependency> getCompositeContextDependencies(Collection<L> loaders)
public static <L extends AttributeLoader<?>> TrailItemSet getCompositeGlobalTrail(Collection<L> loaders)
public static List<Class<?>> getLoaderClasses(AttributeLoader<?> loader)
Copyright © 2024 Tempo Software. All Rights Reserved.