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 inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
_zoneItemCache
The ZoneItems cache.
-
-
Constructor Details
-
AbstractZoneItemCacheObserver
public AbstractZoneItemCacheObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getPriority
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.
-