Modifier and Type | Method and Description |
---|---|
protected DefinitionMetadataBuilder |
AbstractFileResourceConfigurationSource.createMetadata(Resource resource) |
protected Object |
YamlReader.doReadWithDependencies(Resource res,
MgnlYamlConstructor.YamlConfigurationDependencyAggregator dependencyAggregator) |
void |
YamlConfigurationSource.loadAndRegister(Resource resource) |
abstract void |
AbstractFileResourceConfigurationSource.loadAndRegister(Resource resource) |
protected org.yaml.snakeyaml.Yaml |
YamlReader.newSnakeYaml(Resource yamlResource,
MgnlYamlConstructor.YamlConfigurationDependencyAggregator dependencyAggregator) |
DefinitionMetadataBuilder |
RegexBasedPathToMetadataInferrer.populateFrom(DefinitionMetadataBuilder metadataBuilder,
Resource resource) |
DefinitionMetadataBuilder |
PathToMetadataInferrer.populateFrom(DefinitionMetadataBuilder metadataBuilder,
Resource relativePath) |
Object |
YamlReader.read(Resource res) |
protected Object |
YamlReader.readNoCast(Resource res) |
Map<String,Object> |
YamlReader.readToMap(Resource resource) |
YamlReader.YamlConversionResult |
YamlReader.readWithDependencies(Resource resource) |
Constructor and Description |
---|
YamlDefinitionProvider(YamlConfigurationSource<T> relatedSource,
Resource yamlResource,
Map2BeanTransformer map2BeanTransformer,
YamlReader yamlReader)
Deprecated.
|
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) |
YamlReaderException(org.yaml.snakeyaml.error.YAMLException cause,
Resource relatedResource) |
Modifier and Type | Method and Description |
---|---|
Resource |
YamlDefinitionDecorator.getDecoratorFile() |
Resource |
FileDefinitionDecorator.getDecoratorFile() |
Modifier and Type | Method and Description |
---|---|
<T> Optional<FileDefinitionDecorator<T>> |
FileDefinitionDecoratorResolver.resolve(Resource resource) |
<T> Optional<FileDefinitionDecorator<T>> |
FilePathBasedYamlDefinitionDecoratorResolver.resolve(Resource resource) |
Constructor and Description |
---|
YamlDefinitionDecorator(YamlDefinitionDecoratorMetadata metadata,
DefinitionReferenceIdResolver referenceIdResolver,
Resource decoratorYamlFile,
Map2BeanTransformer map2BeanTransformer)
|
YamlDefinitionDecorator(YamlDefinitionDecoratorMetadata metadata,
DefinitionReferenceIdResolver referenceIdResolver,
Resource decoratorYamlFile,
Map2BeanTransformer map2BeanTransformer,
MagnoliaConfigurationProperties magnoliaConfigurationProperties) |
Modifier and Type | Field and Description |
---|---|
protected static Predicate<Resource> |
DefaultMessageBundlesLoader.DIRECTORY_PREDICATE |
protected static Predicate<Resource> |
DefaultMessageBundlesLoader.RESOURCE_PREDICATE |
Modifier and Type | Interface and Description |
---|---|
interface |
ResourceOrigin<P extends Resource>
Common interface for all resource file origins (e.g.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource
A convenient class to extend by subclasses of
AbstractResourceOrigin . |
class |
ResourceStub
Deprecated.
since 5.4.6 - new
ResourceOrigin.registerResourceChangeHandler(ResourceChangeHandler) allows for registering more sophisticated
resource change handlers rendering this class obsolete. |
Modifier and Type | Method and Description |
---|---|
Resource |
AbstractResource.getParent() |
Resource |
ResourceStub.getParent()
Deprecated.
|
Resource |
Resource.getParent() |
Modifier and Type | Method and Description |
---|---|
default Stream<Resource> |
ResourceOrigin.find(Resource root,
Predicate<Resource> filter)
Collect all resources matching provided predicate starting at the specified root.
|
default Stream<Resource> |
ResourceOrigin.find(String rootPath,
Predicate<Resource> filter)
Collect all resources matching provided predicate starting at the specified path.
|
default Optional<Resource> |
Resource.findResource(Predicate<Resource> resourcePredicate) |
default Optional<Resource> |
Resource.findResource(String childResourceName) |
default Stream<Resource> |
Resource.findResources(Predicate<Resource> resourcePredicate) |
List<Resource> |
AbstractResource.listChildren() |
List<Resource> |
ResourceStub.listChildren()
Deprecated.
|
List<Resource> |
Resource.listChildren() |
default Stream<Resource> |
Resource.streamChildren() |
Modifier and Type | Method and Description |
---|---|
default Stream<Resource> |
ResourceOrigin.find(Resource root,
Predicate<Resource> filter)
Collect all resources matching provided predicate starting at the specified root.
|
boolean |
ResourceVisitor.visitDirectory(Resource resource)
Determines if we should visit this directory resource.
|
void |
ResourceVisitor.visitFile(Resource resource)
Implementations can decide to do anything with the file; note that
ResourceVisitor.visitDirectory(Resource) is
NOT called for files. |
Modifier and Type | Method and Description |
---|---|
default Stream<Resource> |
ResourceOrigin.find(Resource root,
Predicate<Resource> filter)
Collect all resources matching provided predicate starting at the specified root.
|
default Stream<Resource> |
ResourceOrigin.find(String rootPath,
Predicate<Resource> filter)
Collect all resources matching provided predicate starting at the specified path.
|
default Optional<Resource> |
Resource.findResource(Predicate<Resource> resourcePredicate) |
default Stream<Resource> |
Resource.findResources(Predicate<Resource> resourcePredicate) |
Modifier and Type | Class and Description |
---|---|
class |
ClasspathResource<T extends ClasspathEntry>
A
Resource for ClasspathResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
FileSystemResource
A
Resource for FileSystemResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
JcrResource
A
Resource for JcrResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
LayeredResource
A
Resource for LayeredResourceOrigin . |
Modifier and Type | Method and Description |
---|---|
Resource |
LayeredResource.getFirst() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
LayeredResource.getLayers() |
Modifier and Type | Method and Description |
---|---|
protected LayeredResource |
LayeredResourceOrigin.newLayeredResource(List<Resource> resources) |
Modifier and Type | Method and Description |
---|---|
static <R extends Resource> |
Functions.compareByHandle()
Deprecated.
since 6.1 use static
Comparator.comparing(Function) with getPath() method reference |
Modifier and Type | Method and Description |
---|---|
static Predicate<Resource> |
Functions.always()
Deprecated.
since 6.1 use concise lambdas with better parameter name
|
static Function<ResourceOrigin,Resource> |
Functions.getByPath(String path)
Deprecated.
since 6.1 use
ResourceOrigin.getByPath(String) and lambdas |
Collection<Resource> |
FileResourceCollectorVisitor.getCollectedResources() |
protected Function<Resource,Void> |
PredicatedResourceVisitor.getFunction()
Can be useful to e.g.
|
static Function<Resource,Resource> |
Functions.getParent()
Deprecated.
since 6.1 use
getParent() method reference |
static Function<Resource,Resource> |
Functions.getParent()
Deprecated.
since 6.1 use
getParent() method reference |
static Function<Resource,String> |
Functions.getPath()
Deprecated.
since 6.1 use
getPath() method reference |
static Function<ResourceOrigin,Resource> |
Functions.getRoot()
Deprecated.
since 6.1 use
ResourceOrigin.getRoot() method reference |
static Predicate<Resource> |
Functions.isDirectory()
Deprecated.
since 6.1 use
isDirectory() method reference |
static Predicate<Resource> |
Functions.isFile()
Deprecated.
since 6.1 use
isFile() method reference |
static Predicate<Resource> |
Functions.never()
Deprecated.
since 6.1 use concise lambdas with better parameter name
|
static Predicate<Resource> |
Functions.pathEquals(CharSequence path) |
static Predicate<Resource> |
ResourcePredicates.pathEquals(String path) |
static Predicate<Resource> |
ResourcePredicates.pathMatches(Pattern pattern)
Matches if the input
Resource 's handle matches the given pattern. |
static Predicate<Resource> |
Functions.pathMatches(Pattern pattern)
Matches if the input
Resource 's handle matches the given pattern. |
static Predicate<Resource> |
Functions.pathMatches(Predicate<CharSequence> predicate) |
static Predicate<Resource> |
ResourcePredicates.pathMatches(Predicate<String> predicate) |
static Predicate<Resource> |
ResourcePredicates.pathMatches(String pattern) |
static Predicate<Resource> |
Functions.pathMatches(String pattern) |
static Predicate<Resource> |
ResourcePredicates.pathMatchesGlob(String globPattern) |
static Predicate<Resource> |
Functions.pathStartsWith(CharSequence pathPrefix) |
static Predicate<Resource> |
ResourcePredicates.pathStartsWith(String pathPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
ResourceTreeWalker.traverse(Resource resource) |
boolean |
PredicatedResourceVisitor.visitDirectory(Resource resource) |
boolean |
LoggingResourceVisitor.visitDirectory(Resource resource) |
void |
PredicatedResourceVisitor.visitFile(Resource resource) |
void |
LoggingResourceVisitor.visitFile(Resource resource) |
Modifier and Type | Method and Description |
---|---|
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.onAllMatchingFiles(Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Traverses all directories, and applies the given
Function to all files, according to applyToFile . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.onAllMatchingFiles(Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Traverses all directories, and applies the given
Function to all files, according to applyToFile . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Function<Resource,Void> function)
Visits everything and applies the given
Function to everything. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitAndApply,
Function<Resource,Void> function)
Visits according to the given
visitAndApply predicate and applies the given Function according to visitAndApply . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitAndApply,
Function<Resource,Void> function)
Visits according to the given
visitAndApply predicate and applies the given Function according to visitAndApply . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
Constructor and Description |
---|
FileResourceCollectorVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
FileResourceCollectorVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.