APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.tools.jlink.internal.plugins

public final Class ReleaseInfoPlugin

extends AbstractPlugin
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .PrintWriter, .Reader, .UncheckedIOException, java.lang.module.ModuleDescriptor, java.nio.file.Files, .Path, java.util.EnumSet, .HashMap, .Map, .Properties, .Set, java.util.function.Function, java.util.stream.Collectors, jdk.tools.jlink.internal.ModuleSorter, .Utils, jdk.tools.jlink.plugin.PluginException, .ResourcePool, .ResourcePoolBuilder, .ResourcePoolEntry, .ResourcePoolModule

This plugin adds/deletes information for 'release' file.

Field Summary

Modifier and TypeField and Description
public static final String
private final Map<String, String>
Inherited from jdk.tools.jlink.internal.plugins.AbstractPlugin:
DESCRIPTIONUSAGE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(Map<String, String> config)

Overrides default jdk.tools.jlink.plugin.Plugin.configure.

Configure the plugin based on the passed configuration.

public Set<Plugin.State>
getState()

Overrides default jdk.tools.jlink.plugin.Plugin.getState.

The Plugin set of states.

public Plugin.Category
getType()

Overrides default jdk.tools.jlink.plugin.Plugin.getType.

The type of this plugin.

public boolean
hasArguments()

Overrides default jdk.tools.jlink.plugin.Plugin.hasArguments.

Has this plugin require one or more arguments?

private static String
private static String
private byte[]
public ResourcePool
transform(ResourcePool in, ResourcePoolBuilder out)

Implements jdk.tools.jlink.plugin.Plugin.transform.

Visit the content of the modules that are composing the image.

Inherited from jdk.tools.jlink.internal.plugins.AbstractPlugin:
getArgumentsDescriptiongetDescriptiongetMessagegetNamegetUsagenewClassReadernewClassReader

Field Detail

KEYSback to summary
public static final String KEYS
releaseback to summary
private final Map<String, String> release

Constructor Detail

ReleaseInfoPluginback to summary
public ReleaseInfoPlugin()

Method Detail

configureback to summary
public void configure(Map<String, String> config)

Overrides default jdk.tools.jlink.plugin.Plugin.configure.

Doc from jdk.tools.jlink.plugin.Plugin.configure.

Configure the plugin based on the passed configuration. This method is called prior to invoke the plugin.

Annotations
@Override
getStateback to summary
public Set<Plugin.State> getState()

Overrides default jdk.tools.jlink.plugin.Plugin.getState.

Doc from jdk.tools.jlink.plugin.Plugin.getState.

The Plugin set of states.

Annotations
@Override
getTypeback to summary
public Plugin.Category getType()

Overrides default jdk.tools.jlink.plugin.Plugin.getType.

Doc from jdk.tools.jlink.plugin.Plugin.getType.

The type of this plugin.

Annotations
@Override
hasArgumentsback to summary
public boolean hasArguments()

Overrides default jdk.tools.jlink.plugin.Plugin.hasArguments.

Doc from jdk.tools.jlink.plugin.Plugin.hasArguments.

Has this plugin require one or more arguments? A plugin can have one or more optional arguments.
A plugin option with a single argument is specified as follows:

     --plugin-option=arg_value
 
If there are more than arguments, command line option looks like:
     --plugin-option=arg_value:arg2=value2:arg3=value3...
Annotations
@Override
parseVersionback to summary
private static String parseVersion(ModuleDescriptor.Version v)
quoteback to summary
private static String quote(String str)
releaseFileContentback to summary
private byte[] releaseFileContent()
transformback to summary
public ResourcePool transform(ResourcePool in, ResourcePoolBuilder out)

Implements jdk.tools.jlink.plugin.Plugin.transform.

Doc from jdk.tools.jlink.plugin.Plugin.transform.

Visit the content of the modules that are composing the image.

Annotations
@Override