reiern70 commented on a change in pull request #479:
URL: https://github.com/apache/wicket/pull/479#discussion_r745324550



##########
File path: 
wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/PageIdKey.java
##########
@@ -25,9 +28,30 @@
 {
        private final Integer pageId;
 
+       private Class<? extends IManageablePage> pageClass;
+
        public PageIdKey(Integer pageId)
+       {
+               this(pageId, null);
+       }
+
+       public PageIdKey(Integer pageId, String pageClass)
        {
                this.pageId = Args.notNull(pageId, "pageId");
+               Args.notNull(pageClass, "pageClass");
+               try {
+                       this.pageClass = 
(Class<IManageablePage>)Thread.currentThread().getContextClassLoader().loadClass(pageClass);

Review comment:
       I have refactored code. Now context is just an String and tis is done on 
Updater class
   
   
![image](https://user-images.githubusercontent.com/462655/140874545-b9baaa79-27ee-4fea-ab6f-2e089bc8c601.png)
   
   This is a background thread and application is not in thread context.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to