Interface PluginSdks
-
public interface PluginSdksA convenience interface for accessing plugin SDK services.If an extension needs any services, this interface can be included as a constructor parameter and the implementation will be injected into the extension.
public class MyExtension { private final PluginSdks pluginSdks; public MyExtension(PluginSdks pluginSdks) { this.pluginSdks = pluginSdks; } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpClientRegistryhttp()Get theHttpClientRegistry, containing all configuredHttpClients.SerdeServiceserde()Get theSerdeServicefor serialization / deserialization utilities.<T extends ServiceSdk>
TserviceSdk(java.lang.Class<T> type)Entry point for service-specific SDKs.YamlResourceLoaderyamlResourceLoader()Get theYamlResourceLoader, util to load yml resources.
-
-
-
Method Detail
-
http
@Beta @Nonnull HttpClientRegistry http()
Get theHttpClientRegistry, containing all configuredHttpClients.
-
yamlResourceLoader
@Beta @Nonnull YamlResourceLoader yamlResourceLoader()
Get theYamlResourceLoader, util to load yml resources.
-
serde
@Beta @Nonnull SerdeService serde()
Get theSerdeServicefor serialization / deserialization utilities.
-
serviceSdk
@Beta @Nonnull <T extends ServiceSdk> T serviceSdk(@Nonnull java.lang.Class<T> type)
Entry point for service-specific SDKs.A service may register its own specialized SDK to help plugin developers write extensions.
- Type Parameters:
T- The service SDK type. There will only be one of these per-service.
-
-