X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Forg%2Fargeo%2Fslc%2Fosgi%2FOsgiExecutionModulesManager.java;h=046cfb6464301e2245c00669efe90535c48a5146;hb=7d137263a92df9bb874f9c900524dfce640495e6;hp=f15be6bc211578af058842fd2b39ff23b0b7ac6a;hpb=0bdf6d74bb140c84fe996586df694bda616ae28b;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java b/org.argeo.slc.core/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java index f15be6bc2..046cfb646 100644 --- a/org.argeo.slc.core/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java +++ b/org.argeo.slc.core/src/org/argeo/slc/osgi/OsgiExecutionModulesManager.java @@ -631,33 +631,32 @@ public class OsgiExecutionModulesManager extends } } - @SuppressWarnings("deprecation") protected ObjectName flowMBeanName(Module module, ExecutionFlow executionFlow) { String executionModulesPrefix = "SLCExecutionModules"; - String path = executionFlow.getPath(); + // String path = executionFlow.getPath(); String name = executionFlow.getName(); - if (path == null && name.indexOf('/') >= 0) { - path = name.substring(0, name.lastIndexOf('/')); - name = name.substring(name.lastIndexOf('/')); - } + // if (path == null && name.indexOf('/') >= 0) { + // path = name.substring(0, name.lastIndexOf('/')); + // name = name.substring(name.lastIndexOf('/')); + // } StringBuffer buf = new StringBuffer(executionModulesPrefix + ":" + "module=" + module.getName() + " [" + module.getVersion() + "],"); - if (path != null && !path.equals("")) { - int depth = 0; - for (String token : path.split("/")) { - if (!token.equals("")) { - buf.append("path").append(depth).append('='); - // in order to have directories first - buf.append('/'); - buf.append(token).append(','); - depth++; - } - } - } + // if (path != null && !path.equals("")) { + // int depth = 0; + // for (String token : path.split("/")) { + // if (!token.equals("")) { + // buf.append("path").append(depth).append('='); + // // in order to have directories first + // buf.append('/'); + // buf.append(token).append(','); + // depth++; + // } + // } + // } buf.append("name=").append(name); try { return new ObjectName(buf.toString());