Class CleanupUtil
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 Summary
Modifier and TypeMethodDescriptionstatic void
cleanup()
Cleans static resources used by PDFreactor and its libraries.
-
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.
-