ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [3/4] incubator-ignite git commit: # ignite-reflectionFactory: spring cfg
Date Fri, 19 Jun 2015 14:02:40 GMT
# ignite-reflectionFactory: spring cfg


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

Branch: refs/heads/IgniteReflectionFactory-doc
Commit: 2e472eeb280d59d9a140873c0dd2d990c83adc06
Parents: e89ab78
Author: ashutak <ashutak@gridgain.com>
Authored: Fri Jun 19 16:52:17 2015 +0300
Committer: ashutak <ashutak@gridgain.com>
Committed: Fri Jun 19 16:52:17 2015 +0300

----------------------------------------------------------------------
 .../configuration/IgniteReflectionFactory.java  | 25 +++++++++++++-------
 1 file changed, 16 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2e472eeb/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
index a6d4c40..3c17a32 100644
--- a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
+++ b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteReflectionFactory.java
@@ -102,17 +102,24 @@ import java.util.*;
  * <h2 class="header">Spring Example</h2>
  * TcpDiscoverySpi can be configured from Spring XML configuration file:
  * <pre name="code" class="xml">
- * &lt;bean id="grid.custom.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"
singleton="true"&gt;
- *         ...
- *         &lt;bean id="grid.custom.cfg" class="org.apache.ignite.configuration.IgniteCacheConfiguration"&gt;
- *         &lt;property name="discoverySpi"&gt;
- *             &lt;bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"&gt;
- *                 &lt;property name="ipFinder"&gt;
- *                     &lt;bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"
/&gt;
+ * &lt;bean id="grid.custom.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"&gt;
+ *     ...
+ *     &lt;property name="cacheConfiguration"&gt;
+ *         &lt;list&gt;
+ *             &lt;bean class="org.apache.ignite.configuration.CacheConfiguration"&gt;
+ *                 ...
+ *                 &lt;property name="cacheStoreSessionListenerFactories"&gt;
+ *                     &lt;list&gt;
+ *                         &lt;bean class="org.apache.ignite.configuration.IgniteReflectionFactory"&gt;
+ *                             &lt;property name="componentClass" value="custom.project.MyCacheStoreSessionListener"/&gt;
+ *                         &lt;/bean&gt;
+ *                     &lt;/list&gt;
  *                 &lt;/property&gt;
+ *                 ...
  *             &lt;/bean&gt;
- *         &lt;/property&gt;
- *         ...
+ *         &lt;/list&gt;
+ *     &lt;/property&gt;
+ *     ...
  * &lt;/bean&gt;
  * </pre>
  * <p>


Mime
View raw message