Skip to main content

[websocket-spec~source-code-repository:244] controlled creation of instances of endpoints

  • From:
  • To:
  • Subject: [websocket-spec~source-code-repository:244] controlled creation of instances of endpoints
  • Date: Thu, 28 Feb 2013 00:05:45 +0000

Project:    websocket-spec
Repository: source-code-repository
Revision:   244
Author:     dannycoward
Date:       2013-02-28 00:05:43 UTC
Link:       

Log Message:
------------
controlled creation of instances of endpoints


Revisions:
----------
244


Modified Paths:
---------------
branches/prog-deploy-experimental-v013/javax.websocket-all-1.0-b13/server/src/main/java/javax/websocket/server/ServerEndpointConfigurator.java


Diffs:
------
Index: 
branches/prog-deploy-experimental-v013/javax.websocket-all-1.0-b13/server/src/main/java/javax/websocket/server/ServerEndpointConfigurator.java
===================================================================
--- 
branches/prog-deploy-experimental-v013/javax.websocket-all-1.0-b13/server/src/main/java/javax/websocket/server/ServerEndpointConfigurator.java
      (revision 243)
+++ 
branches/prog-deploy-experimental-v013/javax.websocket-all-1.0-b13/server/src/main/java/javax/websocket/server/ServerEndpointConfigurator.java
      (revision 244)
@@ -165,5 +165,21 @@
     public void modifyHandshake(ServerEndpointConfiguration sec, 
HandshakeRequest request, HandshakeResponse response) {
         // nothing.
     }
+    
+    /**
+     * Hi Stepan !
+     * Called by the container when it needs to obtain the endpoint instance 
when
+     * a new client connects to the logical endpoint.
+     * The platform default implementation does what it does now (i.e. 
instantiation
+     * is done by the CDI bean manager). If an endpoint has a configurator
+     * which overrides this method, the container must call it rather than
+     * use the platform default implementation.
+     * @return 
+     */
+    
+    public Object getEndpointInstance() throws InstantiationException {
+        return this.getContainerDefaultConfigurator().getEndpointInstance();
+        
+    }
 
 }





[websocket-spec~source-code-repository:244] controlled creation of instances of endpoints

dannycoward 02/28/2013
 
 
Close
loading
Please Confirm
Close