ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/29] incubator-ignite git commit: #ignite-960: Add exception to check SpringApplicationContextResource.
Date Wed, 17 Jun 2015 09:10:04 GMT
#ignite-960: Add exception to check SpringApplicationContextResource.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/8a9cd822
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/8a9cd822
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/8a9cd822

Branch: refs/heads/ignite-1020
Commit: 8a9cd822631ebf7be676b6fc076a4c1ed3874690
Parents: 50d1403
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Tue Jun 2 12:04:06 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Tue Jun 2 12:04:06 2015 +0300

----------------------------------------------------------------------
 .../ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8a9cd822/modules/spring/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java
b/modules/spring/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java
index 5f51c12..4b51982 100644
--- a/modules/spring/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java
+++ b/modules/spring/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStoreFactory.java
@@ -17,6 +17,7 @@
 
 package org.apache.ignite.cache.store.jdbc;
 
+import org.apache.ignite.*;
 import org.apache.ignite.internal.util.tostring.*;
 import org.apache.ignite.resources.*;
 import org.springframework.context.*;
@@ -115,6 +116,9 @@ public class CacheJdbcBlobStoreFactory  implements Factory<CacheJdbcBlobStore>
{
         store.setPassword(passwd);
 
         if (dataSrcBean != null) {
+            if (appContext == null)
+                throw new IgniteException("Spring application context resource is not injected.");
+
             DataSource data = (DataSource) appContext.getBean(dataSrcBean);
 
             store.setDataSource(data);


Mime
View raw message