Class PromptServicePluginLocator

java.lang.Object
de.xima.fc.prompt.mgmt.gui.model.PromptServicePluginLocator
All Implemented Interfaces:
IBeanProvidingPluginLocator<String, IPluginPromptService>, Serializable

@ApplicationScoped public class PromptServicePluginLocator extends Object implements IBeanProvidingPluginLocator<String, IPluginPromptService>
See Also:
  • Constructor Details

    • PromptServicePluginLocator

      @Inject public PromptServicePluginLocator(IPromptServiceHandlerRegistry registry)
    • PromptServicePluginLocator

      public PromptServicePluginLocator()
  • Method Details

    • findPlugin

      public IPluginPromptService findPlugin(Mandant tenant, String type)
      Description copied from interface: IBeanProvidingPluginLocator
      Finds the plugin that provides the UI and the bean for the given key. When the UI is from a built-in, this method should return null.
      Specified by:
      findPlugin in interface IBeanProvidingPluginLocator<String, IPluginPromptService>
      Parameters:
      tenant - The current client scope, or null if no client is available. When given, plugins from that client scope should be included. When not given, only system scoped should be considered.
      type - The key used to identify which bean to retrieve, e.g. a workflow node handler's type.
      Returns:
      The plugin that provides the bean for the given key, or null if it comes from a built-in.