jakartaee / websocket

Jakarta WebSocket
https://projects.eclipse.org/projects/ee4j.websocket
Other
60 stars 40 forks source link

Add @ServerEndpoint#extensions #327

Open dansiviter opened 4 years ago

dansiviter commented 4 years ago

To mirror the facility in ServerEndpointConfig.Builder#extensions add ability to define an array of Extensions (via class) which will be created and managed just for this endpoint. e.g.

public @interface ServerEndpoint {
  ...
  public Class<? extends Extension>[] extensions() default {};
joakime commented 4 years ago

This is something we can look into for version 5.1 (or whatever the next post Jakarta EE9 version is going to be called).

I feel we need to take a holistic approach to Extensions, as there's competing demands and usages for them (depending on the audience).

markt-asf commented 4 years ago

There should be an equivalent for ClientEndpoint as well.