Module org.apache.johnzon.websocket
Class MapperLocatorDelegate
- java.lang.Object
-
- org.apache.johnzon.websocket.internal.mapper.MapperLocatorDelegate
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,java.util.EventListener
public class MapperLocatorDelegate extends java.lang.Object implements jakarta.servlet.ServletContextListener
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ATTRIBUTE
private static java.util.Map<java.lang.ClassLoader,java.util.function.Supplier<org.apache.johnzon.mapper.Mapper>>
MAPPER_BY_LOADER
-
Constructor Summary
Constructors Constructor Description MapperLocatorDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(jakarta.servlet.ServletContextEvent servletContextEvent)
void
contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent)
static org.apache.johnzon.mapper.Mapper
locate()
private static org.apache.johnzon.mapper.Mapper
newMapper()
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
locate
public static org.apache.johnzon.mapper.Mapper locate()
-
newMapper
private static org.apache.johnzon.mapper.Mapper newMapper()
-
-