Top Description Inners Fields Constructors Methods
jdk.tools.jlink.internal.plugins

public final Class OrderResourcesPlugin

extends AbstractPlugin
Class Inheritance
Imports
java.io.File, .IOException, .UncheckedIOException, java.nio.file.FileSystem, .Files, .PathMatcher, java.util.ArrayList, .HashMap, .List, .Map, java.util.function.ToIntFunction, jdk.tools.jlink.internal.Utils, jdk.tools.jlink.plugin.ResourcePool, .ResourcePoolBuilder, .ResourcePoolEntry

Order Resources plugin

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
public void
configure(Map<String, String>
The plugin configuration.
config
)

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

Configure the plugin based on the passed configuration.

private int
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 String
public ResourcePool
transform(ResourcePool
Read only content.
in
,
ResourcePoolBuilder
The pool to fill with content. This pool must contain the result of the visit.
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

filtersback to summary
private final List<ToIntFunction<String>> filters
JRT_FILE_SYSTEMback to summary
private static final FileSystem JRT_FILE_SYSTEM
orderedPathsback to summary
private final Map<String, Integer> orderedPaths

Constructor Detail

OrderResourcesPluginback to summary
public OrderResourcesPlugin()

Method Detail

compareback to summary
private static int compare(OrderResourcesPlugin.SortWrapper wrapper1, OrderResourcesPlugin.SortWrapper wrapper2)
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.

Parameters
config:Map<String, String>

The plugin configuration.

Annotations
@Override
getOrdinalback to summary
private int getOrdinal(ResourcePoolEntry resource)
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.

Returns:Plugin.Category

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...
Returns:boolean

true if arguments are needed.

Annotations
@Override
stripModuleback to summary
private String stripModule(String path)
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.

Parameters
in:ResourcePool

Read only content.

out:ResourcePoolBuilder

The pool to fill with content. This pool must contain the result of the visit.

Annotations
@Override
jdk.tools.jlink.internal.plugins back to summary

pack-priv Class OrderResourcesPlugin.SortWrapper

extends Object
Class Inheritance
  • java.lang.Object
  • jdk.tools.jlink.internal.plugins.OrderResourcesPlugin.SortWrapper

Field Summary

Modifier and TypeField and Description
private final int
private final ResourcePoolEntry

Constructor Summary

AccessConstructor and Description
pack-priv
SortWrapper(ResourcePoolEntry resource, int ordinal)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv String
pack-priv ResourcePoolEntry
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ordinalback to summary
private final int ordinal
resourceback to summary
private final ResourcePoolEntry resource

Constructor Detail

SortWrapperback to summary
pack-priv SortWrapper(ResourcePoolEntry resource, int ordinal)

Method Detail

getOrdinalback to summary
pack-priv int getOrdinal()
getPathback to summary
pack-priv String getPath()
getResourceback to summary
pack-priv ResourcePoolEntry getResource()