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 Details

    • http

      @Beta @Nonnull HttpClientRegistry http()
      Get the HttpClientRegistry, containing all configured HttpClients.
    • yamlResourceLoader

      @Beta @Nonnull YamlResourceLoader yamlResourceLoader()
      Get the YamlResourceLoader, util to load yml resources.
    • serde

      @Beta @Nonnull SerdeService serde()
      Get the SerdeService for serialization / deserialization utilities.
    • serviceSdk

      @Beta @Nonnull <T extends ServiceSdk> T serviceSdk(@Nonnull 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.