ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 Support plugins for XML cache generation.
Date Tue, 01 Dec 2015 08:05:40 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc1 95730f9ee -> 2f7b80dc4


IGNITE-843 Support plugins for XML cache generation.


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

Branch: refs/heads/ignite-843-rc1
Commit: 2f7b80dc4a58b00e7aee0f29c3e4763c905ac975
Parents: 95730f9
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Tue Dec 1 15:06:13 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Dec 1 15:06:13 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/helpers/generator/generator-xml.js    | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2f7b80dc/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js b/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
index 55cf397..cd8942a 100644
--- a/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
+++ b/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
@@ -1108,6 +1108,18 @@ $generatorXml.cache = function(cache, res) {
 
     res.startBlock('<bean class="org.apache.ignite.configuration.CacheConfiguration">');
 
+    $generatorXml.cacheConfiguration(cache, res);
+
+    res.endBlock('</bean>');
+
+    return res;
+};
+
+// Generate cache configs.
+$generatorXml.cacheConfiguration = function(cache, res) {
+    if (!res)
+        res = $generatorCommon.builder();
+
     $generatorXml.cacheGeneral(cache, res);
 
     $generatorXml.cacheMemory(cache, res);
@@ -1126,8 +1138,6 @@ $generatorXml.cache = function(cache, res) {
 
     $generatorXml.cacheMetadatas(cache.metadatas, res);
 
-    res.endBlock('</bean>');
-
     return res;
 };
 


Mime
View raw message