APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.dynalink.linker

public abstract Class GuardingDynamicLinkerExporter

extends Object
implements Supplier<List<GuardingDynamicLinker>>
Class Inheritance
All Implemented Interfaces
java.util.function.Supplier
Imports
java.security.Permission, java.util.List, .ServiceLoader, java.util.function.Supplier, jdk.dynalink.DynamicLinkerFactory

A class acting as a supplier of guarding dynamic linkers that can be automatically loaded by other language runtimes. Language runtimes wishing to export their own linkers should subclass this class and implement the get() method to return a list of exported linkers and declare the subclass in /META-INF/services/jdk.dynalink.linker.GuardingDynamicLinkerExporter resource of their distribution (typically, JAR file) so that dynamic linker factories can discover them using the ServiceLoader mechanism.
Since
9
See Also
DynamicLinkerFactory#setClassLoader(ClassLoader)

Field Summary

Modifier and TypeField and Description
public static final String
AUTOLOAD_PERMISSION_NAME

The name of the runtime permission for creating instances of this class.

Constructor Summary

AccessConstructor and Description
protected
GuardingDynamicLinkerExporter()

Creates a new linker exporter.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AUTOLOAD_PERMISSION_NAMEback to summary
public static final String AUTOLOAD_PERMISSION_NAME

The name of the runtime permission for creating instances of this class.

API Note

This permission cannot be used for controlling access to resources anymore as the Security Manager is no longer supported.

Constructor Detail

GuardingDynamicLinkerExporterback to summary
protected GuardingDynamicLinkerExporter()

Creates a new linker exporter.