A http web request might trigger multiple `PersistenceSession` life-cycles (at 
least one).

Previously each PersistenceSession created its own ObjectAdapter list for any 
registered domain-service eagerly, even if not required. We do this now lazy:

1) `ObjectAdapterProvider` provides a `List<ObjectAdapter> getServices()` which 
provides this list on demand, chached in the context of the current 
PersistenceSession.
2) `ObjectAdapterContext` provides a lookup `ObjectAdapter 
lookupServiceAdapterFor(RootOid rootOid)` while an underlying lookup map is 
created lazy and cached application scoped.

Other than that ObjectAdapters are immutable now. (field for the pojo is final)

I'd like to merge at this state, because it appears stable.


[ Full content available at: https://github.com/apache/isis/pull/121 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to