ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject ignite git commit: review IGNITE-1248 Add a method to retrieve Spring application context
Date Fri, 13 May 2016 09:57:55 GMT
Repository: ignite
Updated Branches:
  refs/heads/master b8d624a28 -> 06ba3fe2a


review IGNITE-1248 Add a method to retrieve Spring application context


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

Branch: refs/heads/master
Commit: 06ba3fe2aa4e092c7697041b40a50944aabec6f8
Parents: b8d624a
Author: Saikat Maitra <saikat.maitra@gmail.com>
Authored: Fri May 13 15:57:47 2016 +0600
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Fri May 13 15:57:47 2016 +0600

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/IgniteSpringBean.java   | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/06ba3fe2/modules/spring/src/main/java/org/apache/ignite/IgniteSpringBean.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/main/java/org/apache/ignite/IgniteSpringBean.java b/modules/spring/src/main/java/org/apache/ignite/IgniteSpringBean.java
index 09e71a3..7f79c0e 100644
--- a/modules/spring/src/main/java/org/apache/ignite/IgniteSpringBean.java
+++ b/modules/spring/src/main/java/org/apache/ignite/IgniteSpringBean.java
@@ -128,6 +128,15 @@ public class IgniteSpringBean implements Ignite, DisposableBean, InitializingBea
         this.cfg = cfg;
     }
 
+    /**
+     * Gets the spring application context this Ignite runs in.
+     *
+     * @return Application context this Ignite runs in.
+     */
+    public ApplicationContext getApplicationContext() throws BeansException {
+        return appCtx;
+    }
+
     /** {@inheritDoc} */
     @Override public void setApplicationContext(ApplicationContext ctx) throws BeansException
{
         appCtx = ctx;


Mime
View raw message