public interface PluggableService<T> extends FrameworkSupportService
Modifier and Type | Method and Description |
---|---|
default boolean |
canLoadWithLoader(ProviderLoader loader) |
default CloseableProvider<T> |
loadCloseableWithLoader(java.lang.String providerName,
ProviderLoader loader)
Load a closeable provider with the given loader
|
default T |
loadWithLoader(java.lang.String providerName,
ProviderLoader loader)
Load provider with the given loader
|
getName
default boolean canLoadWithLoader(ProviderLoader loader)
loader
- loaderProviderLoader.canLoadForService(FrameworkSupportService)
default T loadWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
providerName
- provider nameloader
- loaderProviderLoader.load(PluggableService,
String)
ProviderLoaderException
- if an error occursdefault CloseableProvider<T> loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
providerName
- provider nameloader
- loaderProviderLoader.loadCloseable(PluggableService, String)
ProviderLoaderException
- if an error occurs