Top Description Fields Constructors Methods
jdk.internal.ref

public final Class CleanerFactory

extends Object
Class Inheritance
Imports
jdk.internal.misc.InnocuousThread, java.lang.ref.Cleaner, java.util.concurrent.ThreadFactory

CleanerFactory provides a Cleaner for use within system modules. The cleaner is created on the first reference to the CleanerFactory.

Field Summary

Modifier and TypeField and Description
private static final Cleaner

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Cleaner

Returns:

a Cleaner for use within system modules
cleaner
()

Cleaner for use within system modules.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commonCleanerback to summary
private static final Cleaner commonCleaner

Constructor Detail

CleanerFactoryback to summary
public CleanerFactory()

Method Detail

cleanerback to summary
public static Cleaner cleaner()

Cleaner for use within system modules. This Cleaner will run on a thread whose context class loader is null. The system cleaning action to perform in this Cleaner should handle a null context class loader.

Returns:Cleaner

a Cleaner for use within system modules