The thing is, that cache names can be a dynamic list. But ehcache is expecting to get static list (known before start) on it's xml configuration file. Ehcache provides some defaults config. for new caches with some exceptions. One of them are cache listeners (like replication listeners).
So the thing is, to give ability to define listeners and cache loaders (via spring/blueprint ref.) during endpoint construction.
This will ease configuration of listeners/loaders as xml static list of listeners (per cache) will not be needed anymore. Instead of very long list which you have to keep up to date, you could define one list of listeners/loaders for all cache endpoints!
|camel-cache- documentation of EventListeners, CacheLoaders and PeerProviders||Resolved||Unassigned|