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 CleanupUtil.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 CleanupUtil.cleanup()
method.
When using the modular "pdfreactorcore.jar" instead of the full "pdfreactor.jar", the ServletContextListener class is located in the "pdfreactor-servlet-autocleaner.jar" JAR.
Modifier and Type | Method and Description |
---|---|
static void |
cleanup()
Cleans static resources used by PDFreactor and its libraries.
|
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.
This doc was generated on 2020-09-17. Copyright © 2002-2020 RealObjects GmbH. All Rights Reserved.