public class ODFPageCache extends AbstractLogEnabled implements Serviceable, Contextualizable, Component
Modifier and Type | Class and Description |
---|---|
private static class |
ODFPageCache.CollectionComparator |
Modifier and Type | Field and Description |
---|---|
private static String |
__ATT_CACHE_PREFIX |
private static String |
__ATT_CACHE_PROGRAM_PREFIX |
private Context |
_context |
private OdfPageHandler |
_odfPageHandler |
private WorkspaceSelector |
_workspaceSelector |
static String |
ROLE
Avalon role.
|
Constructor and Description |
---|
ODFPageCache() |
Modifier and Type | Method and Description |
---|---|
private Program |
_getProgramWithRestrictions(Page rootPage,
String level1,
String level2,
String programName) |
void |
clearCache(Page rootPage)
Clear page cache
|
void |
contextualize(Context context) |
(package private) Program |
getProgram(Page rootPage,
String level1,
String level2,
String programName)
Get cached program
|
(package private) Map<String,Map<String,Collection<Program>>> |
getProgramCache(Page rootPage,
boolean computeIfNotPresent) |
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final String __ATT_CACHE_PREFIX
private static final String __ATT_CACHE_PROGRAM_PREFIX
private OdfPageHandler _odfPageHandler
private WorkspaceSelector _workspaceSelector
public ODFPageCache()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
Map<String,Map<String,Collection<Program>>> getProgramCache(Page rootPage, boolean computeIfNotPresent)
Program getProgram(Page rootPage, String level1, String level2, String programName)
rootPage
- The ODF root pagelevel1
- The value of first levellevel2
- The value of second levelprogramName
- The name of programprivate Program _getProgramWithRestrictions(Page rootPage, String level1, String level2, String programName)
public void clearCache(Page rootPage)
rootPage
- The ODF root page