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 WIP on preview.
Date Wed, 26 Aug 2015 02:33:24 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 6b4f5d8ba -> 7aa622e62


IGNITE-843 WIP on preview.


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

Branch: refs/heads/ignite-843
Commit: 7aa622e6202683b5999805c632c0ee36316ebeb6
Parents: 6b4f5d8
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Wed Aug 26 09:33:46 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Wed Aug 26 09:33:46 2015 +0700

----------------------------------------------------------------------
 .../main/js/routes/generator/generator-xml.js   | 23 +++++++++++++-------
 1 file changed, 15 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7aa622e6/modules/control-center-web/src/main/js/routes/generator/generator-xml.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/routes/generator/generator-xml.js b/modules/control-center-web/src/main/js/routes/generator/generator-xml.js
index 667ff2d..c3c0ef5 100644
--- a/modules/control-center-web/src/main/js/routes/generator/generator-xml.js
+++ b/modules/control-center-web/src/main/js/routes/generator/generator-xml.js
@@ -800,6 +800,19 @@ $generatorXml.metadataStore = function(meta, res) {
     return res;
 };
 
+$generatorXml.cacheMetadata = function(meta, res) {
+    if (!res)
+        res = $generatorCommon.builder();
+
+    res.startBlock('<bean class="org.apache.ignite.cache.CacheTypeMetadata">');
+
+    $generatorXml.metadataGeneral(meta, res);
+    $generatorXml.metadataQuery(meta, res);
+    $generatorXml.metadataStore(meta, res);
+
+    res.endBlock('</bean>');
+};
+
 // Generate caches configs.
 $generatorXml.cache = function(cache, res) {
     if (!res)
@@ -838,13 +851,7 @@ $generatorXml.cache = function(cache, res) {
                 if (!_.contains(metaNames, meta.name)) {
                     metaNames.push(meta.name);
 
-                    res.startBlock('<bean class="org.apache.ignite.cache.CacheTypeMetadata">');
-
-                    $generatorXml.metadataGeneral(meta, res);
-                    $generatorXml.metadataQuery(meta, res);
-                    $generatorXml.metadataStore(meta, res);
-
-                    res.endBlock('</bean>');
+                    $generatorXml.cacheMetadata(meta, res);
                 }
             });
         }
@@ -854,7 +861,7 @@ $generatorXml.cache = function(cache, res) {
                 if (!_.contains(metaNames, meta.name)) {
                     metaNames.push(meta.name);
 
-                    _generateCacheTypeMetadataConfiguration(res, meta);
+                    $generatorXml.cacheMetadata(meta, res);
                 }
             });
         }


Mime
View raw message