public interface NodeIndexer
Modifier and Type | Method and Description |
---|---|
void |
index(Node node)
Adds the metadata.
|
java.lang.Boolean |
support(java.lang.String path)
Whether the node at this path will be supported.
|
java.lang.Boolean support(java.lang.String path)
EventListener
before the node is loaded, and would apply on
information contained in the path / file name: file extension, base path,
etc. If the node needs to be loaded, the recommended approach is to
return true
here and wait for index to be called, possibly
returning without processing if the node should not be indexed. While
not strictly a requirement, this avoids to open sessions in the indexer,
centralizing such tasks in the caller.void index(Node node)
Copyright © 2007–2020. All rights reserved.