Revision a500a93f
Added by Cherian Mathew about 10 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteConfiguration.java | ||
---|---|---|
13 | 13 |
import org.apache.log4j.Logger; |
14 | 14 |
import org.springframework.context.ApplicationContextAware; |
15 | 15 |
import org.springframework.stereotype.Component; |
16 |
import org.springframework.transaction.PlatformTransactionManager; |
|
17 |
import org.springframework.transaction.TransactionStatus; |
|
16 | 18 |
|
17 | 19 |
import eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration; |
18 | 20 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
19 | 21 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolderMock; |
22 |
import eu.etaxonomy.cdm.api.service.IDatabaseService; |
|
20 | 23 |
|
21 | 24 |
/** |
22 | 25 |
* @author a.mueller |
... | ... | |
28 | 31 |
* @author j.koch |
29 | 32 |
*/ |
30 | 33 |
@Component |
31 |
public class CdmApplicationRemoteConfiguration extends CdmApplicationConfiguration implements ICdmApplicationRemoteConfiguration, ApplicationContextAware {
|
|
34 |
public class CdmApplicationRemoteConfiguration extends CdmApplicationDefaultConfiguration {
|
|
32 | 35 |
|
33 | 36 |
@SuppressWarnings("unused") |
34 | 37 |
private static final Logger logger = Logger.getLogger(CdmApplicationRemoteConfiguration.class); |
35 | 38 |
|
36 | 39 |
public CdmApplicationRemoteConfiguration() { |
37 | 40 |
} |
41 |
|
|
42 |
@Override |
|
43 |
public IDatabaseService getDatabaseService() throws UnsupportedOperationException { |
|
44 |
throw new UnsupportedOperationException("getDatabaseService is not implemented for CdmApplicationRemoteConfiguration"); |
|
45 |
} |
|
46 |
|
|
47 |
|
|
48 |
@Override |
|
49 |
public PlatformTransactionManager getTransactionManager() throws UnsupportedOperationException { |
|
50 |
throw new UnsupportedOperationException("getTransactionManager is not implemented for CdmApplicationRemoteConfiguration"); |
|
51 |
} |
|
52 |
|
|
53 |
|
|
54 |
/* (non-Javadoc) |
|
55 |
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration#startTransaction() |
|
56 |
*/ |
|
57 |
@Override |
|
58 |
public TransactionStatus startTransaction() throws UnsupportedOperationException { |
|
59 |
throw new UnsupportedOperationException("startTransaction is not implemented for CdmApplicationRemoteConfiguration"); |
|
60 |
} |
|
61 |
|
|
62 |
|
|
63 |
/* (non-Javadoc) |
|
64 |
* @see eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration#startTransaction() |
|
65 |
*/ |
|
66 |
@Override |
|
67 |
public TransactionStatus startTransaction(Boolean readOnly) throws UnsupportedOperationException { |
|
68 |
throw new UnsupportedOperationException("startTransaction is not implemented for CdmApplicationRemoteConfiguration"); |
|
69 |
} |
|
70 |
|
|
71 |
|
|
72 |
@Override |
|
73 |
public void commitTransaction(TransactionStatus txStatus) throws UnsupportedOperationException { |
|
74 |
throw new UnsupportedOperationException("commitTransaction is not implemented for CdmApplicationRemoteConfiguration"); |
|
75 |
} |
|
38 | 76 |
|
39 | 77 |
@Override |
40 | 78 |
public ConversationHolder NewConversation() { |
Also available in: Unified diff
reverting cdm application / controller refactoring and simply extending the CdmApplicationRemoteConfiguration class
by throwing UnsupportedOperationException for methods that are not supported by remoting