@WebListener public class MapperLocator extends Object implements javax.servlet.ServletContextListener
Modifier and Type | Field and Description |
---|---|
private static String |
ATTRIBUTE |
private static Map<ClassLoader,org.apache.johnzon.mapper.Mapper> |
MAPPER_BY_LOADER |
Constructor and Description |
---|
MapperLocator() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
static org.apache.johnzon.mapper.Mapper |
locate() |
private static org.apache.johnzon.mapper.Mapper |
newMapper() |
private static final Map<ClassLoader,org.apache.johnzon.mapper.Mapper> MAPPER_BY_LOADER
private static final String ATTRIBUTE
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
public static org.apache.johnzon.mapper.Mapper locate()
private static org.apache.johnzon.mapper.Mapper newMapper()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.