summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/indexed
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-10-08 01:26:37 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-10-08 01:26:37 +0000
commit81475fd493bcc3d5fe750b54ce8d8fa9fb812c9c (patch)
tree239c821b3947939ba4401744b1d75c53ce82ec3e /src/main/java/com/amazon/carbonado/repo/indexed
parent6dd20a4b23592c0a9a6be23a2123fef410981a2e (diff)
Finished support for trigger factories
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/indexed')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/indexed/IndexedRepositoryBuilder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedRepositoryBuilder.java
index a1aa45e..2010230 100644
--- a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedRepositoryBuilder.java
+++ b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedRepositoryBuilder.java
@@ -26,6 +26,7 @@ import com.amazon.carbonado.ConfigurationException;
import com.amazon.carbonado.Repository;
import com.amazon.carbonado.RepositoryBuilder;
import com.amazon.carbonado.RepositoryException;
+import com.amazon.carbonado.TriggerFactory;
import com.amazon.carbonado.spi.AbstractRepositoryBuilder;
@@ -58,6 +59,9 @@ public class IndexedRepositoryBuilder extends AbstractRepositoryBuilder {
boolean originalOption = mRepoBuilder.isMaster();
try {
mRepoBuilder.setMaster(mIsMaster);
+ for (TriggerFactory factory : getTriggerFactories()) {
+ mRepoBuilder.addTriggerFactory(factory);
+ }
wrapped = mRepoBuilder.build(rootRef);
} finally {
mRepoBuilder.setMaster(originalOption);