Class FactoryLocator
- java.lang.Object
-
- org.apache.johnzon.websocket.internal.jsr.FactoryLocator
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
@WebListener public class FactoryLocator extends Object implements jakarta.servlet.ServletContextListener
-
-
Field Summary
Fields Modifier and Type Field Description private static String
READER_ATTRIBUTE
private static Map<ClassLoader,jakarta.json.JsonReaderFactory>
READER_FACTORY_BY_LOADER
private static String
WRITER_ATTRIBUTE
private static Map<ClassLoader,jakarta.json.JsonWriterFactory>
WRITER_FACTORY_BY_LOADER
-
Constructor Summary
Constructors Constructor Description FactoryLocator()
-
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)
private static jakarta.json.JsonReaderFactory
newReadFactory()
private static jakarta.json.JsonWriterFactory
newWriterFactory()
static jakarta.json.JsonReaderFactory
readerLocate()
static jakarta.json.JsonWriterFactory
writerLocate()
-
-
-
Field Detail
-
READER_FACTORY_BY_LOADER
private static final Map<ClassLoader,jakarta.json.JsonReaderFactory> READER_FACTORY_BY_LOADER
-
WRITER_FACTORY_BY_LOADER
private static final Map<ClassLoader,jakarta.json.JsonWriterFactory> WRITER_FACTORY_BY_LOADER
-
READER_ATTRIBUTE
private static final String READER_ATTRIBUTE
-
WRITER_ATTRIBUTE
private static final String WRITER_ATTRIBUTE
-
-
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
-
readerLocate
public static jakarta.json.JsonReaderFactory readerLocate()
-
writerLocate
public static jakarta.json.JsonWriterFactory writerLocate()
-
newReadFactory
private static jakarta.json.JsonReaderFactory newReadFactory()
-
newWriterFactory
private static jakarta.json.JsonWriterFactory newWriterFactory()
-
-