MCPcopy Create free account
hub / github.com/e2wugui/zeze / setLocalBean

Method setLocalBean

ZezeJava/ZezeJava/src/main/java/Zeze/Arch/Online.java:350–362  ·  view source on GitHub ↗
(@NotNull String account, @NotNull String clientId, @NotNull String key, @NotNull Bean bean)

Source from the content-addressed store, hash-verified

348 }
349
350 public void setLocalBean(@NotNull String account, @NotNull String clientId, @NotNull String key, @NotNull Bean bean) {
351 var login = getLoginLocal(account, clientId);
352 var bAny = new BAny();
353 bAny.getAny().setBean(bean);
354 login.getDatas().put(key, bAny);
355 if (HotManager.isHotModule(bean.getClass().getClassLoader())) {
356 var hotModule = (HotModule)bean.getClass().getClassLoader();
357 Transaction.whileCommit(() -> {
358 hotModule.stopEvents.add(this::onHotModuleStop);
359 hotModulesHaveLocal.add(hotModule);
360 });
361 }
362 }
363
364 public void removeLocalBean(@NotNull String account, @NotNull String clientId, @NotNull String key) {
365 var bLocals = _tlocal.get(account);

Callers 4

saveRetreatsMethod · 0.95
verifyOnlineLocalMethod · 0.45
verifyOnlineLocalMethod · 0.45
verifyOnlineLocalMethod · 0.45

Calls 9

getLoginLocalMethod · 0.95
getAnyMethod · 0.95
isHotModuleMethod · 0.95
whileCommitMethod · 0.95
getClassLoaderMethod · 0.80
putMethod · 0.65
addMethod · 0.65
setBeanMethod · 0.45
getDatasMethod · 0.45

Tested by

no test coverage detected