Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-194

Allow JSON viewer to work with object stores other than the in-memory objectstore.

    XMLWordPrintableJSON

Details

    Description

      In attempting to get the json viewer to run with the SQL object store, discovered that it makes the wrong call to the AdapterManager and so fails to load objects via its OID.

      Exploring further, realized that the SqlOid impl does include the relevant information to call the right API of AdapterManager / PersistenceSession, namely that the className (=> objectSpec) is also included.

      This change is therefore to introduce a new subtype of Oid, namely OidWithSpecification, that is a self-contained Oid, and have the json viewer depend only on object stores that support OidWithSpecification. (Note: it isn't practicable to do what the html and scimpi viewers do, which is to cache the spec per Oid in session state, since the idea is that the json viewer is entirely stateless).

      Also retrofit SqlOid to implement this new interface.

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: