Class DelegatingAttributeLoader<T,L extends AttributeLoader<T>>
- All Implemented Interfaces:
AttributeLoader<T>
- Direct Known Subclasses:
AttributeLoaderAdapter
,DelegatingDerivedAttributeLoader
,DelegatingItemAttributeLoader
,DelegatingRowAttributeLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected L
delegate()
Set<AttributeSpec<?>>
Returns attributes that need to be loaded prior to calling this loader's loading function.Returns the spec for which this loader loads values.Indicates how the values provided by this loader should be cached.Indicates which context values are used to calculate the value of the attribute.Returns global trail.toString()
-
Constructor Details
-
DelegatingAttributeLoader
-
-
Method Details
-
delegate
-
getAttributeSpec
Description copied from interface:AttributeLoader
Returns the spec for which this loader loads values.
The returned value must be the same throughout the lifetime of the object.
- Specified by:
getAttributeSpec
in interfaceAttributeLoader<T>
- Returns:
- spec being loaded
-
getAttributeDependencies
Description copied from interface: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.
- Specified by:
getAttributeDependencies
in interfaceAttributeLoader<T>
- Returns:
- the set of attribute dependencies, or
null
if there are none - See Also:
-
getContextDependencies
Description copied from interface: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.
- Specified by:
getContextDependencies
in interfaceAttributeLoader<T>
- Returns:
- the set of context dependencies or
null
if there are none
-
getCachingStrategy
Description copied from interface: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.
- Specified by:
getCachingStrategy
in interfaceAttributeLoader<T>
- Returns:
- caching strategy,
null
has the same effect asAttributeCachingStrategy.MAY
-
getGlobalTrail
Description copied from interface: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.
- Specified by:
getGlobalTrail
in interfaceAttributeLoader<T>
- Returns:
- global trail set, or
null
if none
-
toString
-