java.lang.Object
net.foxgenesis.watame.plugin.UntrustedPluginLoader<T>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionUntrustedPluginLoader(Class<T> pluginClass) Deprecated, for removal: This API element is subject to removal in a future version.Create a newUntrustedPluginLoaderinstance using the provided service class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get the class ofUntrustedPluginLoader.Deprecated, for removal: This API element is subject to removal in a future version.Get all plugins of typeUntrustedPluginLoaderin the selected folder.getPlugins(Function<ServiceLoader.Provider<T>, T> providerMap) Deprecated, for removal: This API element is subject to removal in a future version.Get all plugins of typeUntrustedPluginLoaderin the selected folder.voidreload()Deprecated, for removal: This API element is subject to removal in a future version.Clear this loader's provider cache so that all providers will be reloaded.
-
Constructor Details
-
UntrustedPluginLoader
Deprecated, for removal: This API element is subject to removal in a future version.Create a newUntrustedPluginLoaderinstance using the provided service class.- Parameters:
pluginClass- - service class used to load plugins- Throws:
NullPointerException- ifpluginClassisnull
-
-
Method Details
-
getPlugins
Deprecated, for removal: This API element is subject to removal in a future version.Get all plugins of typeUntrustedPluginLoaderin the selected folder.This method is effectively equivalent to:
getPlugins(Provider::get)
- Returns:
- A
CollectionofUntrustedPluginLoader - Throws:
ServiceConfigurationError- if the service type is not accessible to the caller or the caller is in an explicit module and its module descriptor does not declare that it uses service- See Also:
-
getPlugins
Deprecated, for removal: This API element is subject to removal in a future version.Get all plugins of typeUntrustedPluginLoaderin the selected folder.- Parameters:
providerMap- -Functionto map aServiceLoader.ProvidertoUntrustedPluginLoader- Returns:
- A
CollectionofUntrustedPluginLoader - Throws:
ServiceConfigurationError- if the service type is not accessible to the caller or the caller is in an explicit module and its module descriptor does not declare that it uses service- See Also:
-
reload
public void reload()Deprecated, for removal: This API element is subject to removal in a future version.Clear this loader's provider cache so that all providers will be reloaded. -
getPluginClass
Deprecated, for removal: This API element is subject to removal in a future version.Get the class ofUntrustedPluginLoader.- Returns:
-