public abstract class ItemTypeAttributeLoader<A> extends AbstractItemAttributeLoader<A>
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
myItemTypes |
mySpec
Constructor and Description |
---|
ItemTypeAttributeLoader(AttributeSpec<A> spec,
String... itemTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
isItemTypeSupported(String itemType)
Lets the loader declare if it can handle items of a given type.
|
getAttributeSpec, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
loadValue, preload
getAttributeDependencies, getAttributeSpec, getCachingStrategy, getContextDependencies, getGlobalTrail
public ItemTypeAttributeLoader(AttributeSpec<A> spec, String... itemTypes)
public final boolean isItemTypeSupported(String itemType)
ItemAttributeLoader
Lets the loader declare if it can handle items of a given type. If the loader returns false
for some type, its ItemAttributeLoader.loadValue(com.almworks.jira.structure.api.item.ItemIdentity, com.almworks.jira.structure.api.attribute.loader.ItemAttributeContext)
function will not be called for items of that type; also, non-supported items will be excluded from the collection passed to ItemAttributeLoader.preload(java.util.Collection<com.almworks.jira.structure.api.item.ItemIdentity>, com.almworks.jira.structure.api.attribute.loader.AttributeContext)
method.
The returned value must be the same for the same item type throughout the lifetime of the object.
itemType
- the type of itemItemIdentity
Copyright © 2024 Tempo Software. All Rights Reserved.