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
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
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|
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.
CleanupUtil class description for when to call it.
This doc was generated on 2022-05-10. Copyright © 2002-2022 RealObjects GmbH. All Rights Reserved.