Skip to main content



      Home
Home » Eclipse Projects » Sirius » Sirius Web add a java service
Sirius Web add a java service [message #1854194] Fri, 05 August 2022 08:35 Go to next message
Eclipse UserFriend
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 02:37 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Sirius Web add a java service [message #1854249 is a reply to message #1854247] Tue, 09 August 2022 03:43 Go to previous message
Eclipse UserFriend
Hello, thanks you Pierre-Charles David.

I was indeed implementing IQueryJavaServiceProvider as a spring service unstead.

It's working perfectly now.

Have a nice day, regards,

Michael
Previous Topic:Reconnect tool Precondition : I can't access to otherEnd and edgeView variables
Next Topic:Validation markers on children represented as 'list'
Goto Forum:
  


Current Time: Thu Apr 17 12:04:43 EDT 2025

Powered by FUDForum. Page generated in 0.03381 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top