public class MetaInfServiceLoader extends DependencyInjectionServiceLoader
Services are defined in files located in "/META-INF/services/" folder:
Modifier and Type | Field and Description |
---|---|
static String |
SERVICES_FOLDER
Folder where the services are defined.
|
services
Constructor and Description |
---|
MetaInfServiceLoader()
Creates a new META-INF properties service loader.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getImplementationName(String key)
Gets the implementation class name for the given service name.
|
createAlternativeImplementation
checkServicePermission, getService, putService
public static final String SERVICES_FOLDER
public MetaInfServiceLoader()
@Nullable protected String getImplementationName(String key)
DependencyInjectionServiceLoader
getImplementationName
in class DependencyInjectionServiceLoader
key
- the service name.null
if none.