Project

General

Profile

« Previous | Next » 

Revision 5789f7e7

Added by Katja Luther over 12 years ago

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/CdmIoApplicationController.java
1 1
package eu.etaxonomy.cdm.api.application;
2 2

  
3
import java.util.List;
4

  
3 5
import org.apache.log4j.Logger;
6
import org.springframework.context.ApplicationListener;
4 7
import org.springframework.core.io.ClassPathResource;
5 8
import org.springframework.core.io.Resource;
6 9

  
......
23 26
	}
24 27
	
25 28
	
26
	public static CdmApplicationController NewInstance() {
29
	public CdmIoApplicationController(Resource applicationContextResource, ICdmDataSource dataSource, DbSchemaValidation dbSchemaValidation, boolean omitTermLoading, IProgressMonitor progressMonitor, List<ApplicationListener> listeners) {
30
		super(applicationContextResource, dataSource, dbSchemaValidation,
31
				omitTermLoading, progressMonitor, listeners);
32
	}
33

  
34

  
35
	public static CdmIoApplicationController NewInstance() {
27 36
		return CdmIoApplicationController.NewInstance(getDefaultDatasource(), defaultDbSchemaValidation, false);
28 37
	}
29 38
	
30
	public static CdmApplicationController NewInstance(DbSchemaValidation dbSchemaValidation) {
39
	public static CdmIoApplicationController NewInstance(DbSchemaValidation dbSchemaValidation) {
31 40
		return CdmIoApplicationController.NewInstance(getDefaultDatasource(), dbSchemaValidation, false);
32 41
	}
33 42
	/**
......
35 44
	 * default database schema validation type
36 45
	 * @param dataSource
37 46
	 */
38
	public static CdmApplicationController NewInstance(ICdmDataSource dataSource) {
39
		return CdmApplicationController.NewInstance(getClasspathResource(), dataSource, defaultDbSchemaValidation, false);
47
	public static CdmIoApplicationController NewInstance(ICdmDataSource dataSource) {
48
		return CdmIoApplicationController.NewInstance(getClasspathResource(), dataSource, defaultDbSchemaValidation, false);
40 49
	}
41 50

  
42 51
	
43
	public static CdmApplicationController NewInstance(ICdmDataSource dataSource, DbSchemaValidation dbSchemaValidation) {
44
		return CdmApplicationController.NewInstance(getClasspathResource(), dataSource, dbSchemaValidation, false);
52
	public static CdmIoApplicationController NewInstance(ICdmDataSource dataSource, DbSchemaValidation dbSchemaValidation) {
53
		return CdmIoApplicationController.NewInstance(getClasspathResource(), dataSource, dbSchemaValidation, false);
45 54
	}
46 55

  
47
	public static CdmApplicationController NewInstance(ICdmDataSource dataSource, DbSchemaValidation dbSchemaValidation, boolean omitTermLoading) {
48
		return CdmApplicationController.NewInstance(getClasspathResource(), dataSource, dbSchemaValidation, omitTermLoading);
56
	public static CdmIoApplicationController NewInstance(ICdmDataSource dataSource, DbSchemaValidation dbSchemaValidation, boolean omitTermLoading) {
57
		return CdmIoApplicationController.NewInstance(getClasspathResource(), dataSource, dbSchemaValidation, omitTermLoading);
49 58
	}
50

  
59
	
51 60

  
52 61
	/**
53 62
	 * @return

Also available in: Unified diff