Class ExtensionBasedQuerySpecificationLoader
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.registry.ExtensionBasedQuerySpecificationLoader
-
public class ExtensionBasedQuerySpecificationLoader extends java.lang.ObjectLoader for theQuerySpecificationRegistrybased on the query group extensions generated by the VIATRA Query builder. The loader has a single instance that processes the extensions on demand if the platform is running, caches the results and updates theQuerySpecificationRegistry. Note that the loader does not perform class loading on the query group if possible.The class has a single instance accessible with
getInstance().- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONNECTOR_ID
-
Constructor Summary
Constructors Constructor Description ExtensionBasedQuerySpecificationLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionBasedQuerySpecificationLoadergetInstance()IRegistrySourceConnectorgetSourceConnector()Return a source connector that can be used to load query specifications contributed through extensions into aIQuerySpecificationRegistry.voidloadRegisteredQuerySpecificationsIntoRegistry()Loads the query specifications that are registered through extension points into theQuerySpecificationRegistry.
-
-
-
Field Detail
-
CONNECTOR_ID
public static final java.lang.String CONNECTOR_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ExtensionBasedQuerySpecificationLoader getInstance()
- Returns:
- the single instance of the loader.
-
loadRegisteredQuerySpecificationsIntoRegistry
public void loadRegisteredQuerySpecificationsIntoRegistry()
Loads the query specifications that are registered through extension points into theQuerySpecificationRegistry.
-
getSourceConnector
public IRegistrySourceConnector getSourceConnector()
Return a source connector that can be used to load query specifications contributed through extensions into aIQuerySpecificationRegistry.- Returns:
- the source connector
-
-