public class XPFPluginInitializationContext extends XPFEntity
Constructor and Description |
---|
XPFPluginInitializationContext(org.slf4j.Logger logger,
Map<String,XPFPluginSetting> settings,
@NonNull String pluginId,
net.sf.ehcache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
<K,V> XPFCache<K,V> |
createCache(String cacheName,
int timeToLive,
int timeToIdle,
int maxObjects)
Create a cache with the given name and configuration.
|
boolean |
equals(Object o) |
net.sf.ehcache.CacheManager |
getCacheManager()
The cache manager.
|
org.slf4j.Logger |
getLogger()
The plugin logger.
|
@NonNull String |
getPluginId()
The plugin ID.
|
Map<String,XPFPluginSetting> |
getSettings()
The plugin settings.
|
Optional<XPFPluginSettingValue> |
getSingleSettingValue(String settingKey)
Retrieve a single setting value for the specified setting key.
|
int |
hashCode() |
String |
toString() |
getCustomData
public XPFPluginInitializationContext(org.slf4j.Logger logger, Map<String,XPFPluginSetting> settings, @NonNull @NonNull String pluginId, 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 objectspublic Optional<XPFPluginSettingValue> getSingleSettingValue(String settingKey)
settingKey
- the setting keypublic org.slf4j.Logger getLogger()
public Map<String,XPFPluginSetting> getSettings()
@NonNull public @NonNull String getPluginId()
public net.sf.ehcache.CacheManager getCacheManager()
Copyright © 2024. All rights reserved.