T
- definition typepublic class YamlDefinitionProvider<T> extends AbstractDefinitionProviderWrapper<T>
DefinitionProvider
implementation which wraps a YAML resource and tracks its dependencies.
The underlying definition would be re-resolved once any of the dependency files are modified.DefinitionProvider.Problem
Constructor and Description |
---|
YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource,
Resource yamlResource,
Map2BeanTransformer map2BeanTransformer,
YamlReader yamlReader)
Deprecated.
since 5.5.6 - use
YamlDefinitionProvider(YamlConfigurationSource, Resource, Map2BeanTransformer, YamlReader, ModuleRegistry) instead. |
YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource,
Resource yamlResource,
Map2BeanTransformer map2BeanTransformer,
YamlReader yamlReader,
ModuleRegistry moduleRegistry)
Deprecated.
|
YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource,
Resource yamlResource,
Map2BeanTransformer map2BeanTransformer,
YamlReader yamlReader,
ModuleRegistry moduleRegistry,
Map<String,Function<Consumer<DefinitionProvider.Problem>,org.yaml.snakeyaml.constructor.Construct>> customConstructs,
Map<String,Function<Consumer<DefinitionProvider.Problem>,org.yaml.snakeyaml.constructor.Construct>> customMultiConstructs) |
Modifier and Type | Method and Description |
---|---|
protected DefinitionProvider<T> |
getDelegate() |
long |
getLastModified()
Returns the timestamp of the last change of the underlying definition change.
|
get, getDecorators, getErrorMessages, getMetadata, getProblems, getRaw, isValid
public YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource, Resource yamlResource, Map2BeanTransformer map2BeanTransformer, YamlReader yamlReader, ModuleRegistry moduleRegistry, Map<String,Function<Consumer<DefinitionProvider.Problem>,org.yaml.snakeyaml.constructor.Construct>> customConstructs, Map<String,Function<Consumer<DefinitionProvider.Problem>,org.yaml.snakeyaml.constructor.Construct>> customMultiConstructs)
@Deprecated public YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource, Resource yamlResource, Map2BeanTransformer map2BeanTransformer, YamlReader yamlReader, ModuleRegistry moduleRegistry)
YamlDefinitionProvider(YamlConfigurationSource, Resource, Map2BeanTransformer, YamlReader, ModuleRegistry, Map, Map)
instead.@Deprecated public YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource, Resource yamlResource, Map2BeanTransformer map2BeanTransformer, YamlReader yamlReader)
YamlDefinitionProvider(YamlConfigurationSource, Resource, Map2BeanTransformer, YamlReader, ModuleRegistry)
instead.public long getLastModified()
DefinitionProvider
DefinitionProvider
merely wraps a definition instance -
such timestamp would never change and be always equal to the provider's creation date. However, if a provider generates the definition on the fly from some
resource - the last modified date might change and that might be a clear signal for an update of the structures that decorate/cache definitions.getLastModified
in interface DefinitionProvider<T>
getLastModified
in class AbstractDefinitionProviderWrapper<T>
CachingDefinitionDecorator
protected DefinitionProvider<T> getDelegate()
getDelegate
in class AbstractDefinitionProviderWrapper<T>
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.