com.liferay.util.resiliency.spi.provider
Class SPIClassPathContextListener
java.lang.Object
com.liferay.util.resiliency.spi.provider.SPIClassPathContextListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class SPIClassPathContextListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
- Author:
- Shuyang Zhou
|
Field Summary |
static java.lang.String |
SPI_CLASS_PATH
|
protected static java.util.concurrent.atomic.AtomicReference<com.liferay.portal.kernel.resiliency.spi.provider.SPIProvider> |
spiProviderReference
|
|
Method Summary |
protected void |
addJarFiles(java.util.Set<java.io.File> jarFiles,
java.lang.ClassLoader classLoader,
java.lang.String className)
|
protected void |
addJarFiles(java.util.Set<java.io.File> jarFiles,
java.io.File dir)
|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
|
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
|
protected static java.lang.Class<?> |
loadClassDirectly(java.lang.ClassLoader classLoader,
java.lang.String className)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPI_CLASS_PATH
public static volatile java.lang.String SPI_CLASS_PATH
spiProviderReference
protected static final java.util.concurrent.atomic.AtomicReference<com.liferay.portal.kernel.resiliency.spi.provider.SPIProvider> spiProviderReference
SPIClassPathContextListener
public SPIClassPathContextListener()
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
loadClassDirectly
protected static java.lang.Class<?> loadClassDirectly(java.lang.ClassLoader classLoader,
java.lang.String className)
throws java.lang.Exception
- Throws:
java.lang.Exception
addJarFiles
protected void addJarFiles(java.util.Set<java.io.File> jarFiles,
java.lang.ClassLoader classLoader,
java.lang.String className)
addJarFiles
protected void addJarFiles(java.util.Set<java.io.File> jarFiles,
java.io.File dir)