Package org.omegat.core.data
Class PluginInformation.Builder
- java.lang.Object
-
- org.omegat.core.data.PluginInformation.Builder
-
- Enclosing class:
- PluginInformation
public static final class PluginInformation.Builder extends java.lang.Object
Builder class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluginInformation
fromManifest(java.lang.String className, java.util.jar.Manifest manifest, java.net.URL mu, PluginInformation.Status status)
Build PluginInformation from Manifest attributes.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.
-
-
-
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 manifeststatus
- 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 propertystatus
- Plugin status, bundled or installed- Returns:
- PluginInformation object.
-
-