Class ConfigurationScope
- java.lang.Object
-
- org.hibernate.search.engine.cfg.spi.ConfigurationScope
-
@Incubating public final class ConfigurationScope extends Object
Holds a configuration scope.It is not expected for service implementors to create the scopes. Hibernate Search will create the scope itself, and it will pass a corresponding scope to the
ConfigurationProviderwhenever it is required.Scope always starts as the global scope. This global scope should always be reachable through recursively accessing the
parent scope, unless the current scope is already a global scope.An example of a scope sequence:
[namespace:global]-- scope always starts with the global scope-
[namespace:backend name:backend-name]-- next a backend scope with an optional backend named. If the name is not present, it means that scope represents a default backend. [namespace:index name:index-name]-- next is a scope specific to an index
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigurationScopeGLOBAL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Predicate<ConfigurationScope> predicate)booleanmatchAny(String namespace)booleanmatchExact(String namespace)booleanmatchExact(String namespace, String name)Stringname()Stringnamespace()ConfigurationScopeparent()ConfigurationScopereduce(String namespace, String name)StringtoString()
-
-
-
Field Detail
-
GLOBAL
public static final ConfigurationScope GLOBAL
-
-
Method Detail
-
reduce
public ConfigurationScope reduce(String namespace, String name)
-
matchAny
public boolean matchAny(String namespace)
-
matchExact
public boolean matchExact(String namespace)
-
match
public boolean match(Predicate<ConfigurationScope> predicate)
-
parent
public ConfigurationScope parent()
-
namespace
public String namespace()
-
name
public String name()
-
-