Project

General

Profile

« Previous | Next » 

Revision 0219b768

Added by Andreas Müller about 9 years ago

merge taxeditor validation2 into trunk

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
27 27

  
28 28
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration;
29 29
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
30
import eu.etaxonomy.cdm.api.service.ICommonService;
30 31
import eu.etaxonomy.cdm.api.service.IService;
31 32
import eu.etaxonomy.cdm.config.ICdmSource;
32 33
import eu.etaxonomy.cdm.database.DbSchemaValidation;
......
285 286

  
286 287
		return service;
287 288
	}
289
	
290
	/**
291
	 * Generic method that will scan the getters of {@link ICdmApplicationConfiguration} for the given service
292
	 * interface. If a matching getter is found the according service implementation is returned by
293
	 * invoking the getter otherwise the method returns <code>null</code>.
294
	 *
295
	 * @param <T>
296
	 * @param serviceClass
297
	 * @return the configured implementation of <code>serviceClass</code> or <code>null</code>
298
	 */
299
	public static ICommonService getCommonService() {
300
		ICdmApplicationConfiguration configuration = getCurrentApplicationConfiguration();
301

  
302
		return configuration.getCommonService();
303

  
304
	}
288 305

  
289 306
	/**
290 307
	 * <p>

Also available in: Unified diff