beforeCacheFactoryShutdown
and on the afterCacheElementRemoved
event in our listener.configure()
method in the standalone listener. This is necessary when you are using CacheBox listeners outside of a ColdBox application. The configure()
method receives two parameters:cacheBox
: An instance reference to the CacheBox factory where this listener will be registered with.properties
: A structure of properties that passes through from the configuration file.Caution Order is EXTREMELY important for interceptors/listeners. So please make sure you order them in the declaration file in the order you want them to fire.