foam-framework / foam2

FOAM: Feature-Oriented Active Modeller, Version 2
Apache License 2.0
73 stars 63 forks source link

ClassLoader/ModelFileDAO: Support for custom classes and facets #262

Open mdittmer opened 7 years ago

mdittmer commented 7 years ago

The ClassLoader and *ModelFileDAO implementations do not currently deal appropriately with custom property classes or of:s. Here's the issue:

It looks like properties, and anything else that can be specified with a custom class: need:

This allows the ModelFileDAO to return a model only after all its constituent parts are ready, and deals with the fact that the code "realizes" that the class is missing in the middle of synchronous Model.create().

adamvy commented 7 years ago

This could also be handled by async json parsing.

If the JSON parser had an async interface, it could pause whenever it encountered a class that wasn't available yet.