There are many cases, where we have short helper functions or even classes (e.g. enums) that should be available for all Services by an "import" statement.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
It's partly possible to implement this kind of functions as Ressources, but ...
- These need to be implemented in Java, which makes the implementation more complicate
- On Runtime we need to marshal all the parameters and return values
Storing these little helpers in a central file could enable easy functionality like enums, reduce error sources.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.