doc
This commit is contained in:
@@ -881,7 +881,7 @@ public final class Application {
|
||||
listener.onPreStart(this);
|
||||
}
|
||||
for (ModuleEngine item : moduleEngines) {
|
||||
item.onAppPostInit();
|
||||
item.onAppPreStart();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user