Interface NamedServiceProvider<T>
-
- Type Parameters:
T- The type of the service.
public interface NamedServiceProvider<T>A service provider for named services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U extends T>
UgetService(String name, Class<U> clazz)Gets the service of the specified type and name, ornullif not found.
-
-
-
Method Detail
-
getService
@Nullable <U extends T> U getService(@Nullable String name, Class<U> clazz)
Gets the service of the specified type and name, ornullif not found.- Type Parameters:
U- The specific type of the service- Parameters:
name- The name of the service, ornullfor the default service.clazz- The type of the service.- Returns:
- The service instance, or
nullif not found.
-
-