Class ExtensionService

java.lang.Object
com.symphony.bdk.core.extension.ExtensionService

@API(status=EXPERIMENTAL) public class ExtensionService extends Object
Service class for managing extensions.
See Also:
  • BdkExtension
  • Constructor Details

  • Method Details

    • register

      public void register(com.symphony.bdk.extension.BdkExtension extension)
    • register

      public void register(Class<? extends com.symphony.bdk.extension.BdkExtension> extClz)
      Registers and instantiates an extension.
      Parameters:
      extClz - Type of the extension.
      Throws:
      IllegalStateException - if the extension has already been registered
      BdkExtensionException - if the extension cannot be instantiated
      See Also:
      • BdkExtension
    • service

      public <S extends com.symphony.bdk.extension.BdkExtensionService, E extends com.symphony.bdk.extension.BdkExtensionServiceProvider<S>> S service(Class<E> extClz)
      Retrieves an extension service instance.
      Type Parameters:
      S - Type of the extension service.
      E - Type of the extension.
      Parameters:
      extClz - The extension class.
      Returns:
      extension service instance.
      Throws:
      IllegalStateException - if the extension is not registered
      See Also: