Interface PluginSdks
public interface PluginSdks
A 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
Modifier and TypeMethodDescriptionhttp()Get theHttpClientRegistry, containing all configuredHttpClients.serde()Get theSerdeServicefor serialization / deserialization utilities.<T extends ServiceSdk>
TserviceSdk(Class<T> type) Entry point for service-specific SDKs.Get theYamlResourceLoader, util to load yml resources.
-
Method Details
-
http
Get theHttpClientRegistry, containing all configuredHttpClients. -
yamlResourceLoader
Get theYamlResourceLoader, util to load yml resources. -
serde
Get theSerdeServicefor serialization / deserialization utilities. -
serviceSdk
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.
-