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 Detail

      • 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.