Rule for Serpulo core unloaders taking items from the core
This commit is contained in:
@@ -394,6 +394,13 @@ public class ContentParser{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object newInstance(Class type){
|
||||
Object o = super.newInstance(type);
|
||||
onNewInstance(o, type);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T readValue(Class<T> type, Class elementType, JsonValue jsonData, Class keyType){
|
||||
T t = internalRead(type, elementType, jsonData, keyType);
|
||||
@@ -1347,6 +1354,8 @@ public class ContentParser{
|
||||
Log.warn(string, format);
|
||||
}
|
||||
|
||||
void onNewInstance(Object object, Class<?> type){}
|
||||
|
||||
public Json getJson(){
|
||||
checkInit();
|
||||
return parser;
|
||||
|
||||
Reference in New Issue
Block a user