Package org.ametys.web.cache.zoneitem
Class AbstractZoneItemCacheObserver
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
- Direct Known Subclasses:
AbstractZoneItemCacheOnContentObserver
,AbstractZoneItemCacheOnZoneItemObserver
,InvalidateZoneItemCacheOnServiceModificationObserver
public abstract class AbstractZoneItemCacheObserver extends AbstractLogEnabled implements Observer, Serviceable
Abstract class for observer related to the management of the ZoneItems cache.
-
-
Field Summary
Fields Modifier and Type Field Description protected PageElementCache
_zoneItemCache
The ZoneItems cache.-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AbstractZoneItemCacheObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_zoneItemCache
protected PageElementCache _zoneItemCache
The ZoneItems cache.
-
-
Constructor Detail
-
AbstractZoneItemCacheObserver
public AbstractZoneItemCacheObserver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getPriority
public int getPriority(Event event)
Description copied from interface:Observer
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.- Specified by:
getPriority
in interfaceObserver
- Parameters:
event
- the event.- Returns:
- the priority where 0 the max priority and Integer.MAX_VALUE the min priority.
-
-