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

Method Initialize

ZezeJava/ZezeJava/src/main/java/Zeze/Component/DbWeb.java:63–78  ·  view source on GitHub ↗
(AppBase app)

Source from the content-addressed store, hash-verified

61 }
62
63 @Override
64 public void Initialize(AppBase app) throws Exception {
65 logger.debug("start db web");
66 super.Initialize(app);
67 zeze = app.getZeze();
68
69 try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream("DbWebIndex.html")) {
70 if (inputStream != null) {
71 try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8))) {
72 indexHtml = reader.lines().collect(Collectors.joining("\n"));
73 }
74 } else {
75 logger.info("DbWebIndex.html not found");
76 }
77 }
78 }
79
80 public void SetIndexHtml(String indexHtml) {
81 Objects.requireNonNull(indexHtml);

Callers

nothing calls this directly

Calls 4

getClassLoaderMethod · 0.80
InitializeMethod · 0.65
getZezeMethod · 0.65
collectMethod · 0.45

Tested by

no test coverage detected