|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.settings.cache.selector.SettingCacheSelector
public class SettingCacheSelector
Created by The eXo Platform SAS Author : Nguyen Viet Bang bangnv@exoplatform.com Nov 27, 2012 This class allows to select all setting cache objects which are in a specified Context or Scope. The callback function of this selector is to remove all selected setting object.
| Constructor Summary | |
|---|---|
SettingCacheSelector(org.exoplatform.commons.api.settings.data.SettingContext provider)
Create a selector with a specified context |
|
| Method Summary | |
|---|---|
void |
onSelect(org.exoplatform.services.cache.ExoCache<? extends org.exoplatform.commons.api.settings.data.SettingKey,? extends Object> cache,
org.exoplatform.commons.api.settings.data.SettingKey key,
org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
Callback function if select function return true. |
boolean |
select(org.exoplatform.commons.api.settings.data.SettingKey key,
org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
This function allows this selector could select right object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SettingCacheSelector(org.exoplatform.commons.api.settings.data.SettingContext provider)
provider - context or scope with which the specified value is to be associated| Method Detail |
|---|
public boolean select(org.exoplatform.commons.api.settings.data.SettingKey key,
org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
select in interface org.exoplatform.services.cache.CachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey,Object>key - the key which is composed by context, scope, keyocinfo - cache info (expire time, cache associated object)
public void onSelect(org.exoplatform.services.cache.ExoCache<? extends org.exoplatform.commons.api.settings.data.SettingKey,? extends Object> cache,
org.exoplatform.commons.api.settings.data.SettingKey key,
org.exoplatform.services.cache.ObjectCacheInfo<? extends Object> ocinfo)
throws Exception
onSelect in interface org.exoplatform.services.cache.CachedObjectSelector<org.exoplatform.commons.api.settings.data.SettingKey,Object>cache - ExoCachekey - setting will be removedcinfo - cache info
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||