blob: 8787814e530f96f1c9ce33c495b45f8309ad2db5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*******************************************************************************
* Copyright (c) 2010-2018, Zoltan Ujhelyi, IncQuery Labs Ltd.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-v20.html.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package tools.refinery.viatra.runtime.matchers.backend;
/**
* A provider interface for {@link IQueryBackendFactory} instances.
* @since 2.0
*/
public interface IQueryBackendFactoryProvider {
/**
* Returns a query backend factory instance. The method should return the same instance in case of repeated calls.
*/
IQueryBackendFactory getFactory();
/**
* Returns whether the given query backend should be considered as system default. If multiple backends are
* registered as system default, it is undefined which one will be chosen.
*/
default boolean isSystemDefaultEngine() {
return false;
}
/**
* Returns whether the given query backend should be considered as system default search backend. If multiple
* backends are registered as system default, it is undefined which one will be chosen.
*/
default boolean isSystemDefaultSearchBackend() {
return false;
}
/**
* Returns whether the given query backend should be considered as system default caching backend. If multiple
* backends are registered as system default, it is undefined which one will be chosen.
*/
default boolean isSystemDefaultCachingBackend() {
return false;
}
}
|