ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [51/56] [abbrv] incubator-ignite git commit: # IGNITE-128: Reverted back.
Date Tue, 10 Feb 2015 15:58:33 GMT
# IGNITE-128: Reverted back.


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

Branch: refs/heads/ignite-176
Commit: cf58c10e9bd4ad57388e19fdc9f8162c78164227
Parents: dece1cc
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Tue Feb 10 17:44:32 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Tue Feb 10 17:44:32 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/IgniteKernal.java     | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/cf58c10e/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index e995ae2..0894f28 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -3410,6 +3410,13 @@ public class IgniteKernal extends ClusterGroupAdapter implements IgniteEx,
Ignit
         // TODO 9341: get rid of ent/os after moving ent code to plugin.
         Class<T> implCls = null;
 
+        try {
+            implCls = (Class<T>)Class.forName(enterpriseClassName(cls));
+        }
+        catch (ClassNotFoundException ignore) {
+            // No-op.
+        }
+
         if (implCls == null) {
             try {
                 implCls = (Class<T>)Class.forName(openSourceClassName(cls));
@@ -3446,6 +3453,14 @@ public class IgniteKernal extends ClusterGroupAdapter implements IgniteEx,
Ignit
 
     /**
      * @param cls Component interface.
+     * @return Name of component implementation class for enterprise edition.
+     */
+    private static String enterpriseClassName(Class<?> cls) {
+        return cls.getPackage().getName() + ".ent." + cls.getSimpleName().replace("Grid",
"GridEnt");
+    }
+
+    /**
+     * @param cls Component interface.
      * @return Name of component implementation class for open source edition.
      */
     private static String openSourceClassName(Class<?> cls) {


Mime
View raw message