OPUS4 / opus4-common

Core package for OPUS 4.
Other
0 stars 5 forks source link

Interface und Factory für DocumentXmlCache #41

Closed j3nsch closed 1 year ago

j3nsch commented 2 years ago

Die Application soll unabhängig sein, von der konkreten Implementation des DocumentXmlCache.

j3nsch commented 2 years ago

Die korrespondierenden Issues sind OPUS4/framework#234 und OPUS4/application#492.

j3nsch commented 2 years ago

Der Cache wird vom XML Code im Framework genutzt. Es müssen Interfaces definiert werden, das konkrete Cache-Objekt muss über eine Factory erzeugt werden. Wenn kein Cache konfiguriert ist, muss der XML Code auch ohne funktionieren.

j3nsch commented 1 year ago

Die Opus\Common\Repository Klasse bietet eine Factory-Funktion für das Cache-Objekt. Das Interface ist Opus\Common\Model\Xml\XmlCacheInterface. Das wird später vermutlich verschoben werden, da das XML nicht wirklich zum Model gehört.