(long roleId, @NotNull String key, @NotNull T bean)
| 612 | } |
| 613 | |
| 614 | public <T extends Bean> void setLocalBean(long roleId, @NotNull String key, @NotNull T bean) { |
| 615 | var bLocal = getLoginLocal(roleId); |
| 616 | beanFactory.register(bean); |
| 617 | var bAny = new BAny(); |
| 618 | bAny.getAny().setBean(bean); |
| 619 | bLocal.getDatas().put(key, bAny); |
| 620 | if (HotManager.isHotModule(bean.getClass().getClassLoader())) { |
| 621 | var hotModule = (HotModule)bean.getClass().getClassLoader(); |
| 622 | Transaction.whileCommit(() -> { |
| 623 | hotModule.stopEvents.add(this::onHotModuleStop); |
| 624 | hotModulesHaveLocal.add(hotModule); |
| 625 | }); |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | public void removeLocalBean(long roleId, @NotNull String key) { |
| 630 | var bLocal = _tlocal.get(roleId); |
no test coverage detected