@Internal public abstract class SimpleAttributeProvider extends Object implements AttributeLoaderProvider
Constructor and Description |
---|
SimpleAttributeProvider() |
Modifier and Type | Method and Description |
---|---|
static SimpleAttributeProvider |
create(AttributeLoader<?>... loaders) |
AttributeLoader<?> |
createAttributeLoader(AttributeSpec<?> spec,
AttributeProviderContext context)
Creates an attribute loader for the given attribute spec.
|
protected <T> void |
registerCompositeLoader(AttributeSpec<T> spec,
AttributeLoader<T>... loaders) |
protected void |
registerLoader(AttributeLoader<?> loader) |
public static SimpleAttributeProvider create(AttributeLoader<?>... loaders)
protected final void registerLoader(AttributeLoader<?> loader)
@SafeVarargs protected final <T> void registerCompositeLoader(AttributeSpec<T> spec, AttributeLoader<T>... loaders)
@Nullable public AttributeLoader<?> createAttributeLoader(@NotNull AttributeSpec<?> spec, @NotNull AttributeProviderContext context) throws StructureProviderException
AttributeLoaderProvider
createAttributeLoader
in interface AttributeLoaderProvider
spec
- attribute speccontext
- creation contextnull
if this provider cannot offer
a loaderStructureProviderException
- if there was a problem creating a loader (the provider will continue being called)Copyright © 2024 Tempo Software. All Rights Reserved.