Interface PluginDescriptor<T>

Type Parameters:
T - the type of the plugin
All Known Implementing Classes:
DefaultPluginDescriptor, SingletonPluginDescriptor

public interface PluginDescriptor<T>
Represents a loaded plugin.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    createPlugin(File installDir)
    Creates a plugin instance.
    default List<String>
    Returns further ids this plugin represents.
    Returns the unique/primary plugin id.
    Returns the type of plugin being created.
  • Method Details

    • getId

      String getId()
      Returns the unique/primary plugin id.
      Returns:
      the id
    • getFurtherIds

      default List<String> getFurtherIds()
      Returns further ids this plugin represents.
      Returns:
      the further ids, may be null, empty, unmodifiable
    • createPlugin

      Plugin<T> createPlugin(File installDir)
      Creates a plugin instance.
      Parameters:
      installDir - the installation directory, may be null
      Returns:
      the plugin instance
    • getType

      Class<T> getType()
      Returns the type of plugin being created.
      Returns: