Interface NamedServiceProvider<T>
-
- All Known Subinterfaces:
AIServiceProvider
- All Known Implementing Classes:
DefaultAIServiceProvider,DefaultNamedServiceProvider
public interface NamedServiceProvider<T>
-
-
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, or null if 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, or null if not found.- Parameters:
name- The name of the service, or null for the default service.clazz- The type of the service.- Returns:
- The service instance, or null if not found.
-
-