Package org.apache.catalina.core
Class JniLifecycleListener
- java.lang.Object
- 
- org.apache.catalina.core.JniLifecycleListener
 
- 
- All Implemented Interfaces:
- LifecycleListener
 
 public class JniLifecycleListener extends java.lang.Object implements LifecycleListener An implementation of LifeCycleListener that loads a native library into the JVM.Native libraries are associated with the class loader of the class that loaded them, and the same library may not be loaded by more than one class loader. Due to that restriction, loading a native library from a Webapp's class loader makes it impossible for other Webapps to load the native library. Loading the native library using this listener solves the issue as it is loaded by a shared class loader (typically the Common class loader, but may vary in some configurations). 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static StringManagersm
 - 
Constructor SummaryConstructors Constructor Description JniLifecycleListener()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLibraryName()java.lang.StringgetLibraryPath()voidlifecycleEvent(LifecycleEvent event)Acknowledge the occurrence of the specified event.voidsetLibraryName(java.lang.String libraryName)voidsetLibraryPath(java.lang.String libraryPath)
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm 
 
- 
 - 
Method Detail- 
lifecycleEventpublic void lifecycleEvent(LifecycleEvent event) Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- LifecycleEvent that has occurred
 
 - 
setLibraryNamepublic void setLibraryName(java.lang.String libraryName) 
 - 
getLibraryNamepublic java.lang.String getLibraryName() 
 - 
setLibraryPathpublic void setLibraryPath(java.lang.String libraryPath) 
 - 
getLibraryPathpublic java.lang.String getLibraryPath() 
 
- 
 
-