Class UiPluginContext

java.lang.Object
com.tccc.kos.core.service.ui.plugin.UiPluginContext

public class UiPluginContext extends Object
A named collection of UI plugins.
Version:
2025-06-11
  • Field Details

  • Constructor Details

    • UiPluginContext

      public UiPluginContext(String name)
      Create a context with the specified name.
  • Method Details

    • add

      public void add(String group, KabFile kab)
      Add a KAB containing a UI plugin to the named group within the context. This assumes the ui plugin information is located at kos.ui.plugin within the descriptor.json file.
      Parameters:
      group - group name to add the plugin to
      kab - the kab containing the plugin descriptor
    • add

      public void add(String group, KabFile kab, String pluginDescriptorPath)
      Add a KAB containing a UI plugin to the named group within the context. The pluginDescriptorPath allows the caller to specify where in the descriptor.json file the ui pluing data is located. This exists for backward compatibility with KAB's that may contain the same plugin data but at a different location, such as DDK plugins.
      Parameters:
      group - group name to add the plugin to
      kab - the kab containing the plugin descriptor
    • remove

      public void remove(KabFile kab)
      Remove a KAB from the context.
    • getName

      public String getName()