@Override
public void run() throws Exception {
MapService mapService = getService();
for (MapIndexInfo mapIndex : indexInfoList) {
final MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(mapIndex.mapName);
final IndexService indexService = mapContainer.getIndexService();
for (MapIndexInfo.IndexInfo indexInfo : mapIndex.lsIndexes) {
indexService.addOrGetIndex(indexInfo.attributeName, indexInfo.ordered);
}
}
for (InterceptorInfo interceptorInfo : interceptorInfoList) {
final MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(interceptorInfo.mapName);
Map<String, MapInterceptor> interceptorMap = mapContainer.getInterceptorMap();
List<Map.Entry<String, MapInterceptor>> entryList = interceptorInfo.interceptors;
for (Map.Entry<String, MapInterceptor> entry : entryList) {
if (!interceptorMap.containsKey(entry.getKey())) {
mapContainer.addInterceptor(entry.getKey(), entry.getValue());
}
}
}
}