public interface IndexabilityQueryImplementation
Global lookup is used to find all instances of IndexabilityQueryImplementation.
Threading note: implementors should avoid acquiring locks that might be held
by other threads. Generally treat this interface similarly to SPIs in
org.openide.filesystems with respect to threading semantics.
IndexabilityQuery| Modifier and Type | Interface and Description |
|---|---|
static class |
IndexabilityQueryImplementation.IndexabilityQueryContext |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener l)
Add a listener to changes.
|
String |
getName() |
String |
getStateIdentifier()
It is not the intention of this to represent the configuration,
that should be stored in the configuration, but should make it possible
to identify changes to the configuration.
|
int |
getVersion() |
default boolean |
preventIndexing(IndexabilityQueryImplementation.IndexabilityQueryContext iqp)
Determine if the supplied indexable should be indexed using the given
indexer (identified either by the name of the indexer or its factory
class).
|
void |
removeChangeListener(ChangeListener l)
Stop listening to changes.
|
String getName()
int getVersion()
String getStateIdentifier()
default boolean preventIndexing(IndexabilityQueryImplementation.IndexabilityQueryContext iqp)
iqp - information about the indexable and circumstances of the
indexing actionvoid addChangeListener(ChangeListener l)
l - a listener to addvoid removeChangeListener(ChangeListener l)
l - a listener to remove