This commit is contained in:
redkale
2024-01-04 09:57:45 +08:00
parent f3707a3499
commit 1e715285fa
3 changed files with 42 additions and 2 deletions

View File

@@ -881,7 +881,7 @@ public final class Application {
listener.onPreStart(this);
}
for (ModuleEngine item : moduleEngines) {
item.onAppPostInit();
item.onAppPreStart();
}
}

View File

@@ -3,6 +3,7 @@
*/
package org.redkale.schedule;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
import org.redkale.convert.json.JsonConvert;
@@ -36,6 +37,11 @@ public final class ScheduleEvent {
return (T) map.get(name);
}
public <T> T getJson(String name, Type type) {
Object obj = get(name);
return obj == null ? null : JsonConvert.root().convertFrom(type, obj.toString());
}
public String getString(String name) {
return Utility.convertValue(String.class, map.get(name));
}