summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/domain-manager/src
diff options
context:
space:
mode:
authoradrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68>2009-10-30 19:51:46 +0000
committeradrianocrestani <adrianocrestani@13f79535-47bb-0310-9956-ffa450edef68>2009-10-30 19:51:46 +0000
commita69674c817b5d402b41b828fb3bfaa93b672b0c6 (patch)
tree974fc40911f5f5db36e5e93ce7e9d81af04ef59a /branches/sca-java-1.x/modules/domain-manager/src
parent7abf5a347d0f5dc9a54cd6c443daafae9f4976fc (diff)
fixing compilation problem on DeployedCompositeCollectionImpl
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@831435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/domain-manager/src')
-rw-r--r--branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java b/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
index eaa5187578..6501f2c4b9 100644
--- a/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
+++ b/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
@@ -36,6 +36,7 @@ import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
+import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
@@ -61,6 +62,7 @@ import org.apache.tuscany.sca.data.collection.ItemCollection;
import org.apache.tuscany.sca.data.collection.LocalItemCollection;
import org.apache.tuscany.sca.data.collection.NotFoundException;
import org.apache.tuscany.sca.domain.search.DomainSearch;
+import org.apache.tuscany.sca.domain.search.IndexException;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.osoa.sca.ServiceRuntimeException;
@@ -306,7 +308,13 @@ public class DeployedCompositeCollectionImpl implements ItemCollection, LocalIte
for (Contribution contribution : contributions) {
if (contributionURI.equals(contribution.getURI())) {
- this.domainSearch.contributionUpdated(contribution, contribution);
+
+ try {
+ this.domainSearch.updateContribution(contribution, contribution);
+
+ } catch (IndexException e) {
+ logger.log(Level.WARNING, "Could not update contribution " + contribution.getURI() + " on the index, reason: " + e.getMessage());
+ }
break;