Package net.sf.saxon.java
Class CleanerProxy
java.lang.Object
net.sf.saxon.java.CleanerProxy
This utility class exists in order to put all functionality relating to use of the Java 9 class
Cleaner
in one place, to allow the product to continue to work with Java 8.
If no Cleaner is available (that is, if we're running under Java 8), everything should run fine
except that under rare conditions, resources will not be properly closed. This happens, for example,
if a collection() is bound to a lazily-evaluated variable, and the contents of the collection()
are not read to completion.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CleanerProxy
makeCleanerProxy
(Configuration config) registerCleanupAction
(Object obj, Runnable runnable)
-
Method Details
-
makeCleanerProxy
-
registerCleanupAction
-