tyrus
  1. tyrus
  2. TYRUS-68

Possibility to deploy Endpoint instances

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0-b10
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      Description

      As of version 1.0-b09 it is not possible anymore to pass Endpoint instances to DefaultServerConfiguration objects. This makes it impossible to pass Endpoint instances to a server. Currently it is only possible to provide the server with Endpoint classes which then get instantiated by the server. This is problematic in situations where Endpoints need to be configured before being deployed.
      If it is not intended to pass Endpoint instances to the ServerConfiguration, the user should be able to register objects that take care of Endpoint instantiation or configuration after instantiation by the server.

        Activity

        Hide
        stepan.kopriva added a comment -

        Server currenty allows to be created with configuration, which extends javax.websocket.server.ServerEndpointConfig. In the method ServerEndpointConfig$Configurator#getEndpointInstance(Class<T> endpointClass) throws InstantiationException the user may affect the endpoint instance creation.

        Show
        stepan.kopriva added a comment - Server currenty allows to be created with configuration, which extends javax.websocket.server.ServerEndpointConfig. In the method ServerEndpointConfig$Configurator#getEndpointInstance(Class<T> endpointClass) throws InstantiationException the user may affect the endpoint instance creation.

          People

          • Assignee:
            stepan.kopriva
            Reporter:
            boereck
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: