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

public final Class ExcludeVMPlugin

extends AbstractPlugin
Class Inheritance
Imports
java.io.BufferedReader, .IOException, .InputStreamReader, .UncheckedIOException, java.nio.charset.StandardCharsets, java.util.Comparator, .List, .Map, .TreeSet, java.util.function.Predicate, jdk.tools.jlink.internal.Platform, jdk.tools.jlink.plugin.PluginException, .ResourcePool, .ResourcePoolBuilder, .ResourcePoolEntry, .ResourcePoolModule

Exclude VM plugin

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private boolean
private static final String
private Predicate<String>
private static final String
private ExcludeVMPlugin.Jvm
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 Plugin.Category
getType()

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

The type of this plugin.

private List<ResourcePoolEntry>
getVMs(ResourcePoolModule javaBase, String[] jvmlibs)

VM paths: /java.base/lib/{architecture}/{server|client|minimal}/{shared lib} e.g.: /java.base/lib/server/libjvm.so /java.base/lib/server/libjvm.dylib

private ResourcePoolEntry
public boolean
hasArguments()

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

Has this plugin require one or more arguments?

private boolean
private static String[]
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

ALLback to summary
private static final String ALL
CLIENTback to summary
private static final String CLIENT
JVM_CFGback to summary
private static final String JVM_CFG
keepAllback to summary
private boolean keepAll
MINIMALback to summary
private static final String MINIMAL
predicateback to summary
private Predicate<String> predicate
SERVERback to summary
private static final String SERVER
targetback to summary
private ExcludeVMPlugin.Jvm target

Constructor Detail

ExcludeVMPluginback to summary
public ExcludeVMPlugin()

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
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
getVMsback to summary
private List<ResourcePoolEntry> getVMs(ResourcePoolModule javaBase, String[] jvmlibs)

VM paths: /java.base/lib/{architecture}/{server|client|minimal}/{shared lib} e.g.: /java.base/lib/server/libjvm.so /java.base/lib/server/libjvm.dylib

handleJvmCfgFileback to summary
private ResourcePoolEntry handleJvmCfgFile(ResourcePoolEntry orig, TreeSet<ExcludeVMPlugin.Jvm> existing, TreeSet<ExcludeVMPlugin.Jvm> removed) throws IOException
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
isRemovedback to summary
private boolean isRemoved(ResourcePoolEntry file)
jvmlibsback to summary
private static String[] jvmlibs(ResourcePoolModule module)
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
jdk.tools.jlink.internal.plugins back to summary

private final Enum ExcludeVMPlugin.Jvm

extends Enum<ExcludeVMPlugin.Jvm>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ExcludeVMPlugin.Jvm
private final int
public static final ExcludeVMPlugin.Jvm
private final String
public static final ExcludeVMPlugin.Jvm

Constructor Summary

AccessConstructor and Description
private
Jvm(String name, int efficience)

Method Summary

Modifier and TypeMethod and Description
private int
private String
public static ExcludeVMPlugin.Jvm
public static ExcludeVMPlugin.Jvm[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLIENTback to summary
public static final ExcludeVMPlugin.Jvm CLIENT
efficienceback to summary
private final int efficience
MINIMALback to summary
public static final ExcludeVMPlugin.Jvm MINIMAL
nameback to summary
private final String name

Hides java.lang.Enum.name.

SERVERback to summary
public static final ExcludeVMPlugin.Jvm SERVER

Constructor Detail

Jvmback to summary
private Jvm(String name, int efficience)

Method Detail

getEfficienceback to summary
private int getEfficience()
getNameback to summary
private String getName()
valueOfback to summary
public static ExcludeVMPlugin.Jvm valueOf(String name)
valuesback to summary
public static ExcludeVMPlugin.Jvm[] values()
jdk.tools.jlink.internal.plugins back to summary

private final Class ExcludeVMPlugin.JvmComparator

extends Object
implements Comparator<ExcludeVMPlugin.Jvm>
Class Inheritance
  • java.lang.Object
  • jdk.tools.jlink.internal.plugins.ExcludeVMPlugin.JvmComparator
All Implemented Interfaces
java.util.Comparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(ExcludeVMPlugin.Jvm o1, ExcludeVMPlugin.Jvm o2)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JvmComparatorback to summary
private JvmComparator()

Method Detail

compareback to summary
public int compare(ExcludeVMPlugin.Jvm o1, ExcludeVMPlugin.Jvm o2)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Annotations
@Override