public class SWCManager extends ConcurrentCacheStoreBase<ISWC> implements ISWCManager
ISWCManager
based on
ConcurrentCacheStoreBase
.Modifier and Type | Class and Description |
---|---|
static class |
SWCManager.SWCCacheKey
Key class for SWC cache.
|
Constructor and Description |
---|
SWCManager(IWorkspace workspace)
Initialize the
SWCManager . |
Modifier and Type | Method and Description |
---|---|
protected ISWC |
createEntryValue(CacheStoreKeyBase key)
Concrete class must implement this method to create a cache value object.
|
ISWC |
get(File file)
Get the SWC model of the given SWC file.
|
AssetTagCache |
getAssetTagCache()
Get asset tags cache.
|
CSSDocumentCache |
getCSSDocumentCache() |
FileScopeCache |
getFileScopeCache()
Get file scope cache.
|
SWFCache |
getSWFCache()
Get SWF cache.
|
IWorkspace |
getWorkspace() |
void |
remove(File file)
Removes an existing SWC file from the cache
|
get, remove, size, toString
public SWCManager(IWorkspace workspace)
SWCManager
.public SWFCache getSWFCache()
ISWCManager
getSWFCache
in interface ISWCManager
public FileScopeCache getFileScopeCache()
ISWCManager
getFileScopeCache
in interface ISWCManager
public AssetTagCache getAssetTagCache()
ISWCManager
getAssetTagCache
in interface ISWCManager
public IWorkspace getWorkspace()
protected ISWC createEntryValue(CacheStoreKeyBase key)
ConcurrentCacheStoreBase
ConcurrentCacheStoreBase.get(CacheStoreKeyBase)
is
responsible for reading and writing the cache table.createEntryValue
in class ConcurrentCacheStoreBase<ISWC>
key
- cache keypublic ISWC get(File file)
ISWCManager
get
in interface ISWCManager
file
- SWC filepublic void remove(File file)
ISWCManager
remove
in interface ISWCManager
file
- SWC file to be removedpublic CSSDocumentCache getCSSDocumentCache()
getCSSDocumentCache
in interface ISWCManager
Copyright © 2016 The Apache Software Foundation. All rights reserved.