Class CleanupUtil

java.lang.Object
com.realobjects.pdfreactor.util.CleanupUtil

public class CleanupUtil extends Object

This class provides a single static method to cleanup static resources. If you are using PDFreactor as a Java library in a web application, call the cleanup() method when the servlet context is destroyed. This shuts down internally used cleaner threads. This is only necessary if the web application is re-deployed multiple times during the application server's life time.

Note that PDFreactor registers a ServletContextListener that does exactly that. So for basic servlet integrations or integrations that respect ServletContextListeners via the '@WebListener' annotation it is not necessary to call the cleanup() method.

When using the "pdfreactor.jar" instead of the "pdfreactor-uber.jar", the ServletContextListener class is located in the "pdfreactor-servlet-autocleaner.jar" JAR.

  • Method Details

    • cleanup

      public static void cleanup()

      Cleans static resources used by PDFreactor and its libraries. Usually, it is not necessary to call this method.

      See the CleanupUtil class description for when to call it.