Package net.sf.saxon.java
Class CleanerProxy
- java.lang.Object
-
- net.sf.saxon.java.CleanerProxy
-
public class CleanerProxy extends java.lang.Object
This utility class exists in order to put all functionality relating to use of the Java 9 classCleaner
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 Modifier and Type Class Description static class
CleanerProxy.CleanableProxy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CleanerProxy
makeCleanerProxy(Configuration config)
CleanerProxy.CleanableProxy
registerCleanupAction(java.lang.Object obj, java.lang.Runnable runnable)
-
-
-
Method Detail
-
makeCleanerProxy
public static CleanerProxy makeCleanerProxy(Configuration config)
-
registerCleanupAction
public CleanerProxy.CleanableProxy registerCleanupAction(java.lang.Object obj, java.lang.Runnable runnable)
-
-