On 22/04/2021 16:24, Romain Manni-Bucau wrote:
Hi,

Is it possible to reuse/add/have a SPI to create ws coders/decoders?

Currently it is a hardcoded factory doing a "new"
(org.apache.tomcat.websocket.Util#getDecoders for decoders, for encoders it
is a bit worse since there is an instance as a check here
org.apache.tomcat.websocket.server.WsServerContainer#validateEncoders and
the instantiation happens here
org.apache.tomcat.websocket.WsRemoteEndpointImplBase#setEncoders).

Best would likely be to reuse tomcat instance manager since it would make
it working OOTB for integrations/users and also enable to have a proper
lifecycle management (destroyInstance).

Wdyt?

-> https://github.com/eclipse-ee4j/websocket-api/issues

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to