Project

General

Profile

« Previous | Next » 

Revision 0396b23b

Added by Andreas Müller over 12 years ago

set currentIo for check modus and observers for import modus

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmApplicationAwareDefaultImport.java
11 11

  
12 12
import java.util.HashMap;
13 13
import java.util.Map;
14
import java.util.Set;
15 14

  
16 15
import org.apache.log4j.Logger;
17 16
import org.springframework.beans.BeansException;
......
114 113
				ICdmIO cdmIo = (ICdmIO)applicationContext.getBean(ioBeanName, ICdmIO.class);
115 114
				if (cdmIo != null){
116 115
					registerObservers(config, cdmIo);
116
					state.setCurrentIO(cdmIo);
117 117
					result &= cdmIo.check(state);
118 118
					unRegisterObservers(config, cdmIo);
119 119
				}else{
......
174 174
				String ioBeanName = getComponentBeanName(ioClass);
175 175
				ICdmIO cdmIo = (ICdmIO)applicationContext.getBean(ioBeanName, ICdmIO.class);
176 176
				if (cdmIo != null){
177
//					result &= cdmIo.invoke(config, stores);
177
					registerObservers(config, cdmIo);
178 178
					state.setCurrentIO(cdmIo);
179 179
					result &= cdmIo.invoke(state);
180
					unRegisterObservers(config, cdmIo);
180 181
				}else{
181 182
					logger.error("cdmIO was null");
182 183
					result = false;

Also available in: Unified diff