[TYRUS-68] Possibility to deploy Endpoint instances Created: 21/Jan/13  Updated: 19/Jun/13  Resolved: 19/Jun/13

Status: Closed
Project: tyrus
Component/s: None
Affects Version/s: 1.0-b10
Fix Version/s: 1.0

Type: Task Priority: Minor
Reporter: boereck Assignee: stepan.kopriva
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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.

Comment by stepan.kopriva [ 19/Jun/13 ]

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.

Generated at Sat Oct 10 09:52:36 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.