2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.io
.common
;
9 import org
.apache
.log4j
.Logger
;
11 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
14 * This is an exporter that invokes the application aware defaultExport when invoked itself
15 * @author a.babadshanjan
18 public class CdmDefaultExport
<T
extends IExportConfigurator
> extends CdmDefaultIOBase
<IExportConfigurator
> implements ICdmExporter
<T
> {
19 @SuppressWarnings("unused")
20 private static final Logger logger
= Logger
.getLogger(CdmDefaultExport
.class);
22 public boolean invoke(T config
){
23 ICdmDataSource source
= config
.getSource();
24 return invoke(config
, source
);
33 public boolean invoke(IExportConfigurator config
, ICdmDataSource source
) {
35 boolean createNew
= false;
36 boolean omitTermLoading
= false;
37 if (startApplicationController(config
, source
, omitTermLoading
, createNew
) == false){
40 CdmApplicationAwareDefaultExport
<?
> defaultExport
=
41 (CdmApplicationAwareDefaultExport
<?
>)getCdmAppController().applicationContext
.getBean("defaultExport");
42 return defaultExport
.invoke(config
);