Open samthiriot opened 6 years ago
same for writing a configuration file:
try { new GenstarJsonUtil().marshalToGenstarJson(relativePath.resolve(CONF_EXPORT), gcf, false); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
is not the easiest way for a user to just to a "saveToFile"!
It is now (after some refactoring already - before the expected class was expected !:
we might expect instead a GenstarConfigurationFile.loadFromJson(...) which would not require the user to discover the concept of a class, create an instance, and "unmarshall"