protected void buildDynamicRegion(EntryEvent event) { if (!DynamicRegionFactory.this.isOpen()) return; // Ignore the callback if it originated in this process (because the region // will already have been created) and the event is not a bridge event if ( !event.isOriginRemote() && !event.isBridgeEvent() ) return; // DynamicRegionAttributes dra = (DynamicRegionAttributes)event.getNewValue(); String parentRegionName = dra.rootRegionName; String newRegionName = dra.name; try { doBeforeRegionCreated ( parentRegionName, newRegionName, event.getDistributedMember() ); Region region = createDynamicRegionImpl ( parentRegionName, newRegionName, false); doAfterRegionCreated ( region, true, true, event.getDistributedMember() ); } catch ( Exception e ) { c.getLoggerI18n().warning(LocalizedStrings.DynamicRegionFactory_ERROR_ATTEMPTING_TO_LOCALLY_CREATE_DYNAMIC_REGION__0, newRegionName, e); } }
protected void buildDynamicRegion(EntryEvent event) { if (!DynamicRegionFactory.this.isOpen()) return; // Ignore the callback if it originated in this process (because the region // will already have been created) and the event is not a client event if ( !event.isOriginRemote() && !event.isBridgeEvent() ) return; // DynamicRegionAttributes dra = (DynamicRegionAttributes)event.getNewValue(); String parentRegionName = dra.rootRegionName; String newRegionName = dra.name; try { doBeforeRegionCreated ( parentRegionName, newRegionName, event.getDistributedMember() ); Region region = createDynamicRegionImpl ( parentRegionName, newRegionName, false); doAfterRegionCreated ( region, true, true, event.getDistributedMember() ); } catch ( Exception e ) { c.getLoggerI18n().warning(LocalizedStrings.DynamicRegionFactory_ERROR_ATTEMPTING_TO_LOCALLY_CREATE_DYNAMIC_REGION__0, newRegionName, e); } }