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. The name is optional and is useful for debugging.
      Parameters:
      name - name of the context, used for debugging
  • Method Details

    • add

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

      @Deprecated public void add(KabFile kab, String pluginDescriptorPath)
      Deprecated.
      Add a KAB containing a UI plugin to 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:
      kab - the kab containing the plugin descriptor
    • remove

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

      public String getName()