Class CleanerProxy

java.lang.Object
net.sf.saxon.java.CleanerProxy

public class CleanerProxy extends Object
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.