├── hotLoadClass ├── Say.java ├── RefSay.java ├── Test.java ├── RefChange.java ├── RefSayTow.java ├── MyClassLoads.java └── ClassWatcherService.java ├── README.md ├── .gitattributes └── .gitignore /hotLoadClass/Say.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/Say.java -------------------------------------------------------------------------------- /hotLoadClass/RefSay.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/RefSay.java -------------------------------------------------------------------------------- /hotLoadClass/Test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/Test.java -------------------------------------------------------------------------------- /hotLoadClass/RefChange.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/RefChange.java -------------------------------------------------------------------------------- /hotLoadClass/RefSayTow.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/RefSayTow.java -------------------------------------------------------------------------------- /hotLoadClass/MyClassLoads.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/MyClassLoads.java -------------------------------------------------------------------------------- /hotLoadClass/ClassWatcherService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatrixSeven/HotLoad/HEAD/hotLoadClass/ClassWatcherService.java -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ##Java热加载Demo 2 | Java热加载Demo 3 | * 项目依赖 4 | ** 无 5 | * 重写ClassLoder结合NIO目录监听实现class热加载 6 | * 仅此,分享给大家,正在学爪哇的大家 7 | * QQ群 [吾爱Java: 170936712](http://jq.qq.com/?_wv=1027&k=28XUDSI) 8 | * 个人博客[https://MatrixSeven.github.io](https://MatrixSeven.github.io) 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | --------------------------------------------------------------------------------