-
Notifications
You must be signed in to change notification settings - Fork 64
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make more functions static #3327
Comments
There are a number of classes in Production called
Other services are related to the modules. The services call functions on the modules. The functionality is in the module, the services should do little except to access the module.
Some services are neither-nor. There is simply functionality in the services. Basically they are utility classes. Many of them use the service loader, some don't. In addition, there are a number of utility classes with other names.
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Production uses a service loader to initialize services once at runtime and to make them available later in the application. This makes sense for services that provide functionality from modules, since in this case the modules are loaded once at runtime. However, it makes no sense for static functions that are provided by services that do not use modules (and which do not have to be declared static).
Goal: In the services, declare all functions that work statically and do not use a module as
static
. Call these functions statically, without redirection via the service loader. If a service only provides static functions, remove the service from the service loader altogether.The text was updated successfully, but these errors were encountered: