public class CodebausteinStorage extends java.lang.Object implements CodebausteinStorageI, DBManEventListenerI
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static void |
flushCaches() |
Codebaustein |
get(BenanntPath[] bps,
Benannt benParent) |
Codebaustein |
get(BenanntPath[] bps,
Benannt benParent,
boolean useFallback) |
Codebaustein |
get(BenanntPath path,
Benannt benParent)
Get and return the Codebaustein with the given name.
|
Codebaustein |
get(BenanntPath path,
Benannt benParent,
boolean useFallback) |
BOLoaderI |
getBOLoader() |
java.lang.ref.WeakReference<BOLoaderI> |
getBOLoaderRef() |
CodebausteinCache |
getCache() |
static CodebausteinStorage |
getInstance(BOLoaderI bol) |
static CodebausteinStorage |
getInstance(BOLoaderI bol,
DBManEventProviderI eventProvider) |
void |
processDBManEvent(DBManEvent event)
Listen for change events for Codebaustein objects and update the cache
accordingly.
|
void |
setBOLoaderRef(java.lang.ref.WeakReference<BOLoaderI> $6) |
void |
setCache(CodebausteinCache $7) |
void |
triggerAsyncPrefillCache()
Speeds up form rendering by pre-caching all CBs asynchronously.
|
public static CodebausteinStorage getInstance(BOLoaderI bol)
public static CodebausteinStorage getInstance(BOLoaderI bol, DBManEventProviderI eventProvider)
public static void flushCaches()
public void clear()
clear
in interface CodebausteinStorageI
public final void triggerAsyncPrefillCache()
triggerAsyncPrefillCache
in interface CodebausteinStorageI
public BOLoaderI getBOLoader()
public Codebaustein get(BenanntPath[] bps, Benannt benParent)
get
in interface CodebausteinStorageI
public Codebaustein get(BenanntPath[] bps, Benannt benParent, boolean useFallback)
get
in interface CodebausteinStorageI
public Codebaustein get(BenanntPath path, Benannt benParent)
get
in interface CodebausteinStorageI
_bp
- a BenanntPath specifying the wanted Codebaustein._benParent
- the Benannt relative to which the given BenanntPath is;
if null the BenanntPath should be absolute (or will be resolved from the
root otherwise).public Codebaustein get(BenanntPath path, Benannt benParent, boolean useFallback)
get
in interface CodebausteinStorageI
public void processDBManEvent(DBManEvent event)
processDBManEvent
in interface DBManEventListenerI
_event
- the DBManEvent that was fired (this will actually be a
DBManBOChangeEvent as we filter for these).public java.lang.ref.WeakReference<BOLoaderI> getBOLoaderRef()
public void setBOLoaderRef(java.lang.ref.WeakReference<BOLoaderI> $6)
public CodebausteinCache getCache()
public void setCache(CodebausteinCache $7)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.