+ fixed registration of custom listeners specified through region attributes
This commit is contained in:
Costin Leau
2011-09-22 10:32:04 +03:00
parent 87506ef775
commit 827c4ae9e1

View File

@@ -97,8 +97,8 @@ public class ClientRegionFactoryBean<K, V> extends RegionLookupFactoryBean<K, V>
// map the attributes onto the client
if (attributes != null) {
CacheListener<K, V>[] listeners = attributes.getCacheListeners();
if (!ObjectUtils.isEmpty(cacheListeners)) {
for (CacheListener<K, V> listener : cacheListeners) {
if (!ObjectUtils.isEmpty(listeners)) {
for (CacheListener<K, V> listener : listeners) {
factory.addCacheListener(listener);
}
}