Class AprLifecycleListener

java.lang.Object
org.apache.catalina.core.AprLifecycleListener
All Implemented Interfaces:
LifecycleListener

public class AprLifecycleListener extends Object implements LifecycleListener
Implementation of LifecycleListener that will init and and destroy APR.

This listener must only be nested within Server elements.

Only one instance of the APR/Native library may be loaded per JVM. Loading multiple instances will trigger a JVM crash - typically when the Connectors are destroyed. This listener utilises reference counting to ensure that only one instance of the APR/Native library is loaded at any one time.

If multiple listener configurations are found, only the first one initialised will be used.

Since:
4.1