Revision 22759920
Added by Cherian Mathew about 10 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteConfiguration.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.cdm.api.application; |
12 | 12 |
|
13 |
import org.hibernate.SessionFactory; |
|
14 |
|
|
13 | 15 |
import org.apache.log4j.Logger; |
14 |
import org.springframework.context.ApplicationContextAware;
|
|
16 |
import org.springframework.beans.factory.annotation.Autowired;
|
|
15 | 17 |
import org.springframework.stereotype.Component; |
16 | 18 |
import org.springframework.transaction.PlatformTransactionManager; |
17 | 19 |
import org.springframework.transaction.TransactionStatus; |
18 | 20 |
|
19 |
import eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration; |
|
20 | 21 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
21 | 22 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolderMock; |
22 | 23 |
import eu.etaxonomy.cdm.api.service.IDatabaseService; |
24 |
import eu.etaxonomy.cdm.ext.geo.IEditGeoService; |
|
23 | 25 |
|
24 | 26 |
/** |
25 | 27 |
* @author a.mueller |
... | ... | |
30 | 32 |
* @author a.mueller |
31 | 33 |
* @author j.koch |
32 | 34 |
*/ |
33 |
@Component |
|
35 |
// FIXME:Remoting This bean naming is a hack to make remoting work, in conjunction with the |
|
36 |
// exclude filter in the application package set in the remotingApplicationContext |
|
37 |
@Component("cdmApplicationDefaultConfiguration") |
|
34 | 38 |
public class CdmApplicationRemoteConfiguration extends CdmApplicationDefaultConfiguration { |
35 | 39 |
|
36 | 40 |
@SuppressWarnings("unused") |
37 | 41 |
private static final Logger logger = Logger.getLogger(CdmApplicationRemoteConfiguration.class); |
38 | 42 |
|
43 |
@Autowired |
|
44 |
IEditGeoService editGeoService; |
|
45 |
|
|
39 | 46 |
public CdmApplicationRemoteConfiguration() { |
40 | 47 |
} |
41 | 48 |
|
... | ... | |
79 | 86 |
// TODO Auto-generated method stub |
80 | 87 |
return new ConversationHolderMock(); |
81 | 88 |
} |
89 |
|
|
90 |
public IEditGeoService getEditGeoService() { |
|
91 |
return this.editGeoService; |
|
92 |
} |
|
93 |
@Override |
|
94 |
public void setTransactionManager(PlatformTransactionManager transactionManager) { |
|
95 |
} |
|
96 |
|
|
97 |
@Override |
|
98 |
public void setSessionFactory(SessionFactory sessionFactory) { |
|
99 |
} |
|
82 | 100 |
} |
Also available in: Unified diff
CdmApplicationRemoteConfiguration : added GeoService and @Component bean name
remotingApplicationContext : exclude CdmApplicationDefaultConfiguration from comp scan
remoting_services_security : cosmetic
httpInvokerServiceClients : added editGeoService
config.properties : corrected context path
localApplicationContext.xml : new config file to ease remoting switch
editorApplicationContext : simplified switch to remoting and back