Package de.xima.fc.prompt.mgmt.gui.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PromptServicePluginLocator()PromptServicePluginLocator(IPromptServiceHandlerRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPluginPromptServicefindPlugin(Mandant tenant, String type)Finds the plugin that provides the UI and the bean for the given key.
-
-
-
Constructor Detail
-
PromptServicePluginLocator
@Inject public PromptServicePluginLocator(IPromptServiceHandlerRegistry registry)
-
PromptServicePluginLocator
public PromptServicePluginLocator()
-
-
Method Detail
-
findPlugin
public IPluginPromptService findPlugin(Mandant tenant, String type)
Description copied from interface:IBeanProvidingPluginLocatorFinds 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:
findPluginin interfaceIBeanProvidingPluginLocator<String,IPluginPromptService>- Parameters:
tenant- The currentclientscope, 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.
-
-