public class XPFPluginInitializationContext extends XPFEntity
| Modifier and Type | Field and Description | 
|---|---|
private net.sf.ehcache.CacheManager | 
cacheManager
The cache manager. 
 | 
private org.slf4j.Logger | 
logger
The plugin logger. 
 | 
private @NonNull String | 
pluginId
The plugin ID. 
 | 
private Map<String,XPFPluginSetting> | 
settings
The plugin settings. 
 | 
| Constructor and Description | 
|---|
XPFPluginInitializationContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
<K,V> XPFCache<K,V> | 
createCache(String cacheName,
           int timeToLive,
           int timeToIdle,
           int maxObjects)
Create a cache with the given name and configuration. 
 | 
private net.sf.ehcache.config.CacheConfiguration | 
createCacheConfiguration(int timeToLive,
                        int timeToIdle,
                        int maxObjects)  | 
private net.sf.ehcache.Cache | 
createCacheInstance(String cacheName,
                   int timeToLive,
                   int timeToIdle,
                   int maxObjects)  | 
private void | 
validateCacheName(String name)  | 
private final org.slf4j.Logger logger
private final Map<String,XPFPluginSetting> settings
@NonNull private final @NonNull String pluginId
private final net.sf.ehcache.CacheManager cacheManager
public <K,V> XPFCache<K,V> createCache(String cacheName, int timeToLive, int timeToIdle, int maxObjects)
K - The class implemented by the cache keysV - The class implemented by the cache valuescacheName - the name of the cache to createtimeToLive - the time to livetimeToIdle - the time to idlemaxObjects - the max amount of the objectsprivate net.sf.ehcache.Cache createCacheInstance(String cacheName, int timeToLive, int timeToIdle, int maxObjects)
private net.sf.ehcache.config.CacheConfiguration createCacheConfiguration(int timeToLive,
                                                                          int timeToIdle,
                                                                          int maxObjects)
private void validateCacheName(String name)
Copyright © 2023. All rights reserved.