Skip to content

kawasima/websocket-classloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket-classloader

A ClassLoader loading remote java class via WebSocket. Build Status

Usage

Deploy ClassProvider to JSR-356 container, e.g. undertow, tomcat.

Use class loader as following:

ClassLoader cl = new WebSocketClassLoader("ws://class-provider-host:port");
Class<?> hogeClass = cl.loadClass("org.example.HogeHoge", true);

Architecture

            class binary format
        +-----------------------------------------------+
        v                                               |
+----------------------+  loadClass request     +---------------+
|   Thin Application   |  (WebSocket)           | ClassProvider |
| WebSocketClassLoader | ---------------------> |               |
+----------------------+                        +---------------+

License

Apache License 2.0 (c) 2014-2017 Yoshitaka Kawashima

About

Load remote java classes via WebSocket.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages