Class ConfigurationPropertySourceScopeUtils
- java.lang.Object
-
- org.hibernate.search.engine.cfg.impl.ConfigurationPropertySourceScopeUtils
-
@Incubating public final class ConfigurationPropertySourceScopeUtils extends Object
Provides shortcuts to create scopes, as well as a quick way to create a fallback property source for a given scope.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigurationScopebackend()static ConfigurationScopebackend(String backendName)static ConfigurationPropertySourcefallback(BeanResolver beanResolver, ConfigurationScope scope)Helps to create the fallback from the configuration providers for an exact scope.static ConfigurationScopeglobal()static ConfigurationScopeindex(String backendName, String indexName)
-
-
-
Method Detail
-
global
public static ConfigurationScope global()
-
backend
public static ConfigurationScope backend()
-
backend
public static ConfigurationScope backend(String backendName)
-
index
public static ConfigurationScope index(String backendName, String indexName)
-
fallback
public static ConfigurationPropertySource fallback(BeanResolver beanResolver, ConfigurationScope scope)
Helps to create the fallback from the configuration providers for an exact scope. If multiple providers are available, they will be sorted and configurations from them will be added one by one as fallbacks.
-
-