registerServiceSupplier
Registers a supplier which gets loaded in the same manner as annotated service classes/factories.
Note: The annotations passed will not be readable using standard reflection, they are only read when functions like ServiceContainer.findAnnotationOnService or ServiceContainer.getServiceNamesForAnnotation are used.
Parameters
The type as which the service will be registered as
The name to register the service as
Additional types this service can be retrieved as
Whether this service should be a primary service
Whether this service should be initialized only when requested
The priority of this service
Annotations which should be tied to this service
The function supplying the service
Registers a supplier which gets loaded in the same manner as annotated service classes/factories.
Parameters
The ServiceSupplier instance, construct one with ServiceSupplierBuilder