java.lang.Object
org.myjtools.jexten.plugin.internal.Plugin

public class Plugin extends Object
  • Field Details

    • log

      public static final org.slf4j.Logger log
  • Constructor Details

  • Method Details

    • manifest

      public PluginManifest manifest()
      Get the plugin manifest that describes the plugin.
      Returns:
      The plugin manifest
    • moduleNames

      public List<String> moduleNames(ModuleLayer parentLayer)
      Compute a list with every Java module used by the plugin, excluding the modules that are already used by the parent layer.
    • isHostedBy

      public boolean isHostedBy(ModuleLayer moduleLayer)
    • buildModuleLayer

      public Optional<ModuleLayer> buildModuleLayer(ModuleLayer parentLayer, ClassLoader parentClassLoader)
      Build the Java ModuleLayer that will be used to load the classes of the plugin.
      Returns:
      Either the module layer or an empty optional if it could not be created for any reason
    • moduleReferences

      public Set<ModuleReference> moduleReferences()
    • toString

      public String toString()
      Overrides:
      toString in class Object