[infinispan-commits] Infinispan SVN: r1412 - trunk/lucene-directory/src/main/java/org/infinispan/lucene/locking.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Mon Jan 25 09:25:06 EST 2010


Author: sannegrinovero
Date: 2010-01-25 09:25:06 -0500 (Mon, 25 Jan 2010)
New Revision: 1412

Modified:
   trunk/lucene-directory/src/main/java/org/infinispan/lucene/locking/LuceneLockFactory.java
Log:
Lucene Directory: make use of new core API to get the TransactionManager

Modified: trunk/lucene-directory/src/main/java/org/infinispan/lucene/locking/LuceneLockFactory.java
===================================================================
--- trunk/lucene-directory/src/main/java/org/infinispan/lucene/locking/LuceneLockFactory.java	2010-01-22 17:30:03 UTC (rev 1411)
+++ trunk/lucene-directory/src/main/java/org/infinispan/lucene/locking/LuceneLockFactory.java	2010-01-25 14:25:06 UTC (rev 1412)
@@ -55,7 +55,7 @@
    public LuceneLockFactory(Cache<CacheKey, Object> cache, String indexName) {
       this.cache = cache;
       this.indexName = indexName;
-      tm = cache.getAdvancedCache().getComponentRegistry().getComponent(TransactionManager.class);
+      tm = cache.getAdvancedCache().getTransactionManager();
       if (tm == null) {
          ComponentStatus status = cache.getAdvancedCache().getComponentRegistry().getStatus();
          if (status.equals(ComponentStatus.RUNNING)) {



More information about the infinispan-commits mailing list