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

public final Class LegalNoticeFilePlugin

extends AbstractPlugin
Class Inheritance
Imports
java.nio.file.Path, java.util.ArrayList, .Arrays, .EnumSet, .HashMap, .List, .Map, .Optional, .Set, jdk.tools.jlink.internal.ModuleSorter, .Utils, jdk.tools.jlink.plugin.PluginException, .ResourcePool, .ResourcePoolBuilder, .ResourcePoolEntry, .ResourcePoolEntry.Type, .ResourcePoolModule

A plugin to de-duplicate the legal notices from JMOD files. For a de-duplicated legal notice, the actual copy will be in the base module and with symbolic links in other modules. On platform that does not support symbolic links, a file will be created to contain the path to the linked target.

Field Summary

Modifier and TypeField and Description
private static final String
private boolean
private final Map<String, List<ResourcePoolEntry>>
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.

private void
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?

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

ERROR_IF_NOT_SAME_CONTENTback to summary
private static final String ERROR_IF_NOT_SAME_CONTENT
errorIfNotSameContentback to summary
private boolean errorIfNotSameContent
licenseOrNoticeback to summary
private final Map<String, List<ResourcePoolEntry>> licenseOrNotice

Constructor Detail

LegalNoticeFilePluginback to summary
public LegalNoticeFilePlugin()

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
dedupLegalNoticeEntryback to summary
private void dedupLegalNoticeEntry(ResourcePoolEntry entry)
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
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