Class DocumentLoggingContext

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class DocumentLoggingContext
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • DocumentLoggingContext

        public DocumentLoggingContext​(Document d)
    • Method Detail

      • run

        public void run​(java.lang.Runnable r)
        Wrap some code
        Parameters:
        r - the code to execute in context
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable