Class PluginInformation.Builder

  • Enclosing class:
    PluginInformation

    public static final class PluginInformation.Builder
    extends java.lang.Object
    Builder class.
    • Method Detail

      • fromManifest

        public static PluginInformation fromManifest​(java.lang.String className,
                                                     java.util.jar.Manifest manifest,
                                                     java.net.URL mu,
                                                     PluginInformation.Status status)
        Build PluginInformation from Manifest attributes.
        Parameters:
        className - Plugin class name.
        manifest - metadata of plugin.
        mu - URL of manifest
        status - Plugin status, bundled or installed
        Returns:
        PluginInformation object.
      • fromProperties

        public static PluginInformation fromProperties​(java.lang.String className,
                                                       java.util.Properties props,
                                                       java.lang.String key,
                                                       java.net.URL mu,
                                                       PluginInformation.Status status)
        Build PluginInformation from properties.

        This builder is useful when OmegaT run from Gradle build system.

        Parameters:
        className - Plugin class name.
        props - plugin properties bundled with OmegaT.
        key - plugin type string.
        mu - URL of property
        status - Plugin status, bundled or installed
        Returns:
        PluginInformation object.