Sirius Web add a java service [message #1854194] |
Fri, 05 August 2022 12:35  |
Eclipse User |
|
|
|
Hello,
Does anyone know how to register a new java service for the AQL interpretor ?
I saw the class EMFQueryService, but I'm not sure how to proceed.
Thanks you
|
|
|
Re: Sirius Web add a java service [message #1854247 is a reply to message #1854194] |
Tue, 09 August 2022 06:37   |
Eclipse User |
|
|
|
The EMFQueryService is a Spring @Service (a Spring bean). Though it uses the same term, "service", it is a different notion from the Java service classes/methods that can be registered in an ALQ interpreter (this particular bean is used to evaluate AQL expressions, so it can become confusing).
For Sirius Web studios (modelers defined using the View DSL), if you want to invoke Java code from AQL expressions, the corresponding Java service class must be registered using an IJavaServiceProvider. See EditingDomainServicesProvider.java for an example.
If you are using the Sirius Desktop compatibility layer, you just need to make sure the Java classes registered in your odesign (which must be registered) are available in the classpath.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds