Move ReailizedFlow to execution package
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 27 Oct 2012 12:40:55 +0000 (12:40 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 27 Oct 2012 12:40:55 +0000 (12:40 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5670 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

18 files changed:
modules/org.argeo.slc.agent/META-INF/spring/osgi.xml
plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RunSlcFlow.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/AbstractExecutionModulesManager.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ProcessThread.java
runtime/org.argeo.slc.launcher/src/main/java/org/argeo/slc/cli/SlcMain.java
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionModulesManager.java
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/RealizedFlow.java [new file with mode: 0644]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/RealizedFlow.java [deleted file]
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/SlcExecution.java
runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/SlcExecutionRelated.java
runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java
runtime/org.argeo.slc.support.equinox/src/test/java/org/argeo/slc/osgi/test/HelloTest.java
runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/execution/JcrProcessThread.java
runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/OsgiBundle.java
runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/OsgiExecutionModulesManager.java
runtime/org.argeo.slc.support.osgi/src/main/resources/org/argeo/slc/osgi/manager.xml [deleted file]
runtime/org.argeo.slc.unit/src/main/java/org/argeo/slc/unit/process/SlcExecutionTestUtils.java

index 873f6f2424bd18fdc6a589dbe3a918fd8962d040..027f184d970bd95ed2edb054bfdee28d8b03fa75 100644 (file)
@@ -6,7 +6,7 @@
        http://www.springframework.org/schema/beans   \r
        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
 \r
-       <beans:import resource="classpath:org/argeo/slc/osgi/manager.xml" />\r
+<!--   <beans:import resource="classpath:org/argeo/slc/osgi/manager.xml" /> -->\r
 \r
        <!-- REFERENCES -->\r
        <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
                        unbind-method="unregister" />\r
        </list>\r
 \r
+       <!-- No sets so that the equals methods are not called -->\r
+       <list id="executionFlowDescriptorConverters"\r
+               interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"\r
+               cardinality="0..N">\r
+               <listener ref="modulesManager" />\r
+       </list>\r
+\r
        <list id="slcExecutionListeners" interface="org.argeo.slc.process.SlcExecutionNotifier"\r
                cardinality="0..N" />\r
 \r
index 4ae7f97e69eb10fe605e9b21ce1e98edf67face8..5f783a7a2de2eeec3556bf6da4f76759cce35ecf 100644 (file)
@@ -22,7 +22,7 @@ import java.util.Map;
 import org.argeo.slc.SlcException;
 import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.execution.ExecutionModulesManager;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.Command;
 import org.eclipse.core.commands.ExecutionEvent;
index c4832dbc4bceb926b9cc3890d168d716a464780d..98e5c5be2a983fafdeacc647c41f2fa4fbc9ce28 100644 (file)
@@ -31,7 +31,7 @@ import org.argeo.slc.execution.ExecutionModulesManager;
 import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionProcessNotifier;
 import org.argeo.slc.execution.ExecutionStep;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.argeo.slc.process.SlcExecutionNotifier;
 
 /** Provides the base feature of an execution module manager. */
index 48e4ce56df9eca099fe542b9213f295451bd9f53..190481b7104a4ce703b3bcc11e4a3649e53d77a4 100644 (file)
@@ -20,7 +20,7 @@ import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.SlcException;
 import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.execution.ExecutionStep;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.springframework.security.Authentication;
 import org.springframework.security.context.SecurityContextHolder;
 
index 428cfd178330ed6eff39bea78e6859ddf5682306..a53ff7d483b955ed611eed654743673424b535d1 100644 (file)
@@ -27,7 +27,7 @@ import org.argeo.slc.SlcException;
 import org.argeo.slc.execution.ExecutionModulesManager;
 import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionStep;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.argeo.slc.process.SlcExecution;
 import org.springframework.security.Authentication;
 import org.springframework.security.context.SecurityContextHolder;
index 2df18bf24c5597af383b4fd18881f44b4ad4d126..8c63c9bb80a2578a2fa290526cf4ed8213182ccd 100644 (file)
@@ -15,7 +15,9 @@
  */
 package org.argeo.slc.cli;
 
+import java.io.File;
 import java.io.FileInputStream;
+import java.util.List;
 import java.util.Properties;
 
 import org.apache.commons.cli.CommandLine;
@@ -27,7 +29,13 @@ import org.apache.commons.cli.OptionBuilder;
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.ParseException;
 import org.apache.commons.io.IOUtils;
+import org.argeo.osgi.boot.OsgiBoot;
 import org.argeo.slc.SlcException;
+import org.argeo.slc.execution.ExecutionModulesManager;
+import org.eclipse.core.runtime.adaptor.EclipseStarter;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
 
 @SuppressWarnings("static-access")
 public class SlcMain {
@@ -74,71 +82,154 @@ public class SlcMain {
 
        private final static String commandName = "slc";
 
+       private static String bundlesToInstall = "/usr/share/osgi;in=*.jar";
+
+       private static String bundlesToStart = "org.springframework.osgi.extender,"
+                       + "org.argeo.node.repofactory.jackrabbit,"
+                       + "org.argeo.node.repo.jackrabbit," + "org.argeo.security.dao.os,"
+                       + "org.argeo.slc.node.jackrabbit," + "org.argeo.slc.agent,"
+                       + "org.argeo.slc.agent.jcr";
+
        static {
                options = new Options();
-               options.addOption(typeOpt);
-               options.addOption(moduleOpt);
-               options.addOption(flowsOpt);
-               options.addOption(propertyOpt);
-               options.addOption(propertiesOpt);
-               options.addOption(runtimeOpt);
+               // options.addOption(typeOpt);
+               // options.addOption(moduleOpt);
+               // options.addOption(flowsOpt);
+               // options.addOption(propertyOpt);
+               // options.addOption(propertiesOpt);
+               // options.addOption(runtimeOpt);
        }
 
        public static void main(String[] args) {
-               Type type = null;
-               Properties properties = new Properties();
+               // Type type = null;
+               // Properties properties = new Properties();
+               // String flows = null;
+               // String urlStr = null;
+
                String module = null;
-               String flows = null;
-               String urlStr = null;
+               String moduleUrl = null;
+               String flow = null;
 
                try {
 
                        CommandLineParser clParser = new GnuParser();
                        CommandLine cl = clParser.parse(options, args);
 
-                       // Mode
-                       String typeStr = cl.getOptionValue(typeOpt.getOpt());
-                       if (typeStr == null) {
-                               type = Type.standalone;
+                       List<String> arguments = cl.getArgList();
+                       if (arguments.size() == 0) {
+                               // TODO default behaviour
                        } else {
-                               try {
-                                       type = Type.valueOf(typeStr);
-                               } catch (IllegalArgumentException e) {
-                                       throw new SlcException("Unrecognized mode '" + typeStr
-                                                       + "'", e);
+                               module = arguments.get(0);
+                               File moduleFile = new File(module);
+                               if (moduleFile.exists()) {
+                                       if (moduleFile.isDirectory()) {
+                                               moduleUrl = "reference:file:"
+                                                               + moduleFile.getCanonicalPath();
+                                       } else {
+                                               moduleUrl = "file:" + moduleFile.getCanonicalPath();
+                                       }
                                }
-                       }
 
-                       // Script
-                       if (type.equals(Type.standalone)) {
-                               if (!cl.hasOption(moduleOpt.getOpt()))
-                                       throw new SlcException("Type " + Type.standalone
-                                                       + " requires option '" + moduleOpt.getLongOpt()
-                                                       + "'");
-                               module = cl.getOptionValue(moduleOpt.getOpt());
-
-                               // Targets
-                               if (cl.hasOption(flowsOpt.getOpt()))
-                                       flows = cl.getOptionValue(flowsOpt.getOpt());
-                       }
-
-                       // Properties
-                       if (cl.hasOption(propertiesOpt.getOpt())) {
-                               for (String propertyFile : cl.getOptionValues(propertiesOpt
-                                               .getOpt())) {
-                                       loadPropertyFile(properties, propertyFile);
+                               if (arguments.size() == 1) {
+                                       // TODO module info
+                               } else {
+                                       flow = arguments.get(1);
                                }
                        }
-                       if (cl.hasOption(propertyOpt.getOpt())) {
-                               for (String property : cl.getOptionValues(propertyOpt.getOpt())) {
-                                       addProperty(properties, property);
-                               }
+
+                       // System.setProperty(
+                       // ExecutionModulesManager.UNIQUE_LAUNCH_MODULE_PROPERTY,
+                       // module);
+                       // System.setProperty(
+                       // ExecutionModulesManager.UNIQUE_LAUNCH_FLOW_PROPERTY, flow);
+
+                       String executionDir = System.getProperty("user.dir");
+                       File slcDir = new File(executionDir, ".slc");
+                       File dataDir = new File(slcDir, "data");
+                       if (!dataDir.exists())
+                               dataDir.mkdirs();
+                       File confDir = new File(slcDir, "conf");
+                       if (!confDir.exists())
+                               confDir.mkdirs();
+
+                       BundleContext bundleContext = null;
+                       try {
+                               String[] osgiRuntimeArgs = { "-configuration",
+                                               confDir.getCanonicalPath(), "-data",
+                                               dataDir.getCanonicalPath(), "-console", "-clean" };
+                               bundleContext = EclipseStarter.startup(osgiRuntimeArgs, null);
+                       } catch (Exception e) {
+                               throw new RuntimeException("Cannot start Equinox.", e);
                        }
 
-                       // Runtime
-                       if (cl.hasOption(runtimeOpt.getOpt())) {
-                               urlStr = cl.getOptionValue(runtimeOpt.getOpt());
+                       // OSGi bootstrap
+                       OsgiBoot osgiBoot = new OsgiBoot(bundleContext);
+                       osgiBoot.installUrls(osgiBoot.getBundlesUrls(bundlesToInstall));
+                       osgiBoot.startBundles(bundlesToStart);
+
+                       if (moduleUrl != null) {
+                               Bundle bundle = osgiBoot.installUrl(moduleUrl);
+                               module = bundle.getSymbolicName();
+                               // TODO deal with version
                        }
+
+                       // retrieve modulesManager
+                       ServiceReference sr = bundleContext
+                                       .getServiceReference(ExecutionModulesManager.class
+                                                       .getName());
+                       ExecutionModulesManager modulesManager = (ExecutionModulesManager) bundleContext
+                                       .getService(sr);
+                       
+                       
+                       modulesManager.execute(null);
+
+                       // osgiBoot.bootstrap();
+                       // osgiBoot.bootstrap();
+
+                       // Mode
+                       // String typeStr = cl.getOptionValue(typeOpt.getOpt());
+                       // if (typeStr == null) {
+                       // type = Type.standalone;
+                       // } else {
+                       // try {
+                       // type = Type.valueOf(typeStr);
+                       // } catch (IllegalArgumentException e) {
+                       // throw new SlcException("Unrecognized mode '" + typeStr
+                       // + "'", e);
+                       // }
+                       // }
+                       //
+                       // // Script
+                       // if (type.equals(Type.standalone)) {
+                       // if (!cl.hasOption(moduleOpt.getOpt()))
+                       // throw new SlcException("Type " + Type.standalone
+                       // + " requires option '" + moduleOpt.getLongOpt()
+                       // + "'");
+                       // module = cl.getOptionValue(moduleOpt.getOpt());
+                       //
+                       // // Targets
+                       // if (cl.hasOption(flowsOpt.getOpt()))
+                       // flows = cl.getOptionValue(flowsOpt.getOpt());
+                       // }
+                       //
+                       // // Properties
+                       // if (cl.hasOption(propertiesOpt.getOpt())) {
+                       // for (String propertyFile : cl.getOptionValues(propertiesOpt
+                       // .getOpt())) {
+                       // loadPropertyFile(properties, propertyFile);
+                       // }
+                       // }
+                       // if (cl.hasOption(propertyOpt.getOpt())) {
+                       // for (String property : cl.getOptionValues(propertyOpt.getOpt()))
+                       // {
+                       // addProperty(properties, property);
+                       // }
+                       // }
+                       //
+                       // // Runtime
+                       // if (cl.hasOption(runtimeOpt.getOpt())) {
+                       // urlStr = cl.getOptionValue(runtimeOpt.getOpt());
+                       // }
                } catch (ParseException e) {
                        System.err.println("Problem with command line arguments. "
                                        + e.getMessage());
@@ -152,23 +243,23 @@ public class SlcMain {
                        badExit();
                }
 
-               if (debug) {
-                       debug("Mode: " + type);
-                       if (urlStr != null)
-                               debug("Runtime: " + urlStr);
-                       debug("User properties: " + properties);
-                       if (module != null)
-                               debug("Module: " + module);
-                       if (flows != null)
-                               debug("Flows: " + flows);
-               }
-
-               // Standalone
-               if (type.equals(Type.standalone)) {
-               }
-               // Agent
-               else if (type.equals(Type.agent)) {
-               }
+               // if (debug) {
+               // debug("Mode: " + type);
+               // if (urlStr != null)
+               // debug("Runtime: " + urlStr);
+               // debug("User properties: " + properties);
+               // if (module != null)
+               // debug("Module: " + module);
+               // if (flows != null)
+               // debug("Flows: " + flows);
+               // }
+               //
+               // // Standalone
+               // if (type.equals(Type.standalone)) {
+               // }
+               // // Agent
+               // else if (type.equals(Type.agent)) {
+               // }
        }
 
        public static void printUsage() {
index df298ed0a5bd1797eb4c677821d63751f46fa0eb..cafd4d408e380f1044c7849a3f4c4eae56e7d664 100644 (file)
@@ -19,7 +19,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.argeo.slc.deploy.ModulesManager;
-import org.argeo.slc.process.RealizedFlow;
 
 /** Provides access to the execution modules */
 public interface ExecutionModulesManager extends ModulesManager {
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/RealizedFlow.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/RealizedFlow.java
new file mode 100644 (file)
index 0000000..a2e33fa
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.argeo.slc.execution;
+
+import java.io.Serializable;
+
+import org.argeo.slc.BasicNameVersion;
+import org.argeo.slc.NameVersion;
+
+/** A fully configured execution flow, ready to be executed. */
+public class RealizedFlow implements Serializable {
+       private static final long serialVersionUID = 1L;
+
+       private String moduleName;
+       private String moduleVersion;
+       private ExecutionFlowDescriptor flowDescriptor;
+
+       public String getModuleName() {
+               return moduleName;
+       }
+
+       public void setModuleName(String moduleName) {
+               this.moduleName = moduleName;
+       }
+
+       public NameVersion getModuleNameVersion() {
+               return new BasicNameVersion(getModuleName(), getModuleVersion());
+       }
+
+       public String getModuleVersion() {
+               return moduleVersion;
+       }
+
+       public void setModuleVersion(String moduleVersion) {
+               this.moduleVersion = moduleVersion;
+       }
+
+       public ExecutionFlowDescriptor getFlowDescriptor() {
+               return flowDescriptor;
+       }
+
+       public void setFlowDescriptor(ExecutionFlowDescriptor flowDescriptor) {
+               this.flowDescriptor = flowDescriptor;
+       }
+}
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/RealizedFlow.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/process/RealizedFlow.java
deleted file mode 100644 (file)
index 57bb790..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2007-2012 Mathieu Baudier
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.argeo.slc.process;
-
-import java.io.Serializable;
-
-import org.argeo.slc.BasicNameVersion;
-import org.argeo.slc.NameVersion;
-import org.argeo.slc.execution.ExecutionFlowDescriptor;
-
-/** A fully configured execution flow, ready to be executed. */
-public class RealizedFlow implements Serializable {
-       private static final long serialVersionUID = 1L;
-
-       private String moduleName;
-       private String moduleVersion;
-       private ExecutionFlowDescriptor flowDescriptor;
-
-       public String getModuleName() {
-               return moduleName;
-       }
-
-       public void setModuleName(String moduleName) {
-               this.moduleName = moduleName;
-       }
-
-       public NameVersion getModuleNameVersion() {
-               return new BasicNameVersion(getModuleName(), getModuleVersion());
-       }
-
-       public String getModuleVersion() {
-               return moduleVersion;
-       }
-
-       public void setModuleVersion(String moduleVersion) {
-               this.moduleVersion = moduleVersion;
-       }
-
-       public ExecutionFlowDescriptor getFlowDescriptor() {
-               return flowDescriptor;
-       }
-
-       public void setFlowDescriptor(ExecutionFlowDescriptor flowDescriptor) {
-               this.flowDescriptor = flowDescriptor;
-       }
-}
index 703d8f839251601f97a44dbbb2774e7f2924c007..2f19a78f455f011a756253759be8f9c42b82b19c 100644 (file)
@@ -24,6 +24,7 @@ import java.util.TreeMap;
 \r
 import org.argeo.slc.execution.ExecutionProcess;\r
 import org.argeo.slc.execution.ExecutionStep;\r
+import org.argeo.slc.execution.RealizedFlow;\r
 \r
 /** @deprecated use other implementations of {@link ExecutionProcess} */\r
 public class SlcExecution implements ExecutionProcess, Serializable {\r
index 05907fd685b848479dceac7f5cf0ae1948f4b552..9d6b7e1e4ff1ecfc7e6b0c21047e17564ac77448 100644 (file)
@@ -15,6 +15,7 @@
  */
 package org.argeo.slc.process;
 
+@Deprecated
 public interface SlcExecutionRelated {
        public String getSlcExecutionUuid();
 
index 7ac259910114d4ffafd31fc01a5235bbc7d1c006..c9fe33122cdd2fe2c6ae53cbcc2c473c60f3e50f 100644 (file)
@@ -18,8 +18,8 @@ package org.argeo.slc.equinox;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.SlcException;
+import org.argeo.slc.execution.RealizedFlow;
 import org.argeo.slc.osgi.OsgiExecutionModulesManager;
-import org.argeo.slc.process.RealizedFlow;
 import org.eclipse.osgi.framework.console.CommandInterpreter;
 import org.eclipse.osgi.framework.console.CommandProvider;
 
index 4bc8c5e380d1ece080b63a88cbe17acfabf700e0..d86091700e15256e7970cf79aa8902110e39323c 100644 (file)
@@ -27,14 +27,13 @@ public class HelloTest extends AbstractOsgiRuntimeTestCase {
        }
 
        protected void installBundles() throws Exception {
-//             System.out.println("java.class.path="
-//                             + System.getProperty("java.class.path"));
+               // System.out.println("java.class.path="
+               // + System.getProperty("java.class.path"));
 
                osgiBoot.installUrls(osgiBoot.getLocationsUrls(
-                               OsgiBoot.DEFAULT_BASE_URL, System
-                                               .getProperty("java.class.path")));
-               osgiBoot.installUrls(osgiBoot.getBundlesUrls(OsgiBoot.DEFAULT_BASE_URL,
-                               "src/test/bundles;in=*"));
+                               OsgiBoot.DEFAULT_BASE_URL,
+                               System.getProperty("java.class.path")));
+               osgiBoot.installUrls(osgiBoot.getBundlesUrls("src/test/bundles;in=*"));
 
                // Map<String, String> sysProps = new TreeMap(System.getProperties());
                // for (String key : sysProps.keySet()) {
index 0fcca450432d246b41b699de319b0c7d9ec975a2..545deba9287b8f18da0e73225bf653fc63294fb5 100644 (file)
@@ -34,10 +34,10 @@ import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.execution.ExecutionModulesManager;
 import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionSpecAttribute;
+import org.argeo.slc.execution.RealizedFlow;
 import org.argeo.slc.jcr.SlcJcrUtils;
 import org.argeo.slc.jcr.SlcNames;
 import org.argeo.slc.jcr.SlcTypes;
-import org.argeo.slc.process.RealizedFlow;
 
 /** Where the actual execution takes place */
 public class JcrProcessThread extends ProcessThread implements SlcNames {
index 420c7ad3d83cd071cc740c9e09cbd0be008498b9..920cbd0b21da1773a8d8ca11a331fb1de1a06ebe 100644 (file)
@@ -23,7 +23,7 @@ import org.argeo.slc.deploy.DeploymentData;
 import org.argeo.slc.deploy.Module;
 import org.argeo.slc.deploy.ModuleDescriptor;
 import org.argeo.slc.deploy.TargetData;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.Constants;
 import org.springframework.core.io.Resource;
index 3df33cab896f944a05086e71704aebe79cb9cfde..bd38e6ca83074a5409b1373ca2ef3df8faa17d12 100644 (file)
@@ -45,7 +45,7 @@ import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.execution.ExecutionFlowDescriptorConverter;
 import org.argeo.slc.execution.ExecutionModuleDescriptor;
 import org.argeo.slc.execution.ExecutionModulesListener;
-import org.argeo.slc.process.RealizedFlow;
+import org.argeo.slc.execution.RealizedFlow;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleEvent;
 import org.osgi.framework.BundleException;
diff --git a/runtime/org.argeo.slc.support.osgi/src/main/resources/org/argeo/slc/osgi/manager.xml b/runtime/org.argeo.slc.support.osgi/src/main/resources/org/argeo/slc/osgi/manager.xml
deleted file mode 100644 (file)
index f58d3ef..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!--\r
-\r
-    Copyright (C) 2007-2012 Mathieu Baudier\r
-\r
-    Licensed under the Apache License, Version 2.0 (the "License");\r
-    you may not use this file except in compliance with the License.\r
-    You may obtain a copy of the License at\r
-\r
-            http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-    Unless required by applicable law or agreed to in writing, software\r
-    distributed under the License is distributed on an "AS IS" BASIS,\r
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-    See the License for the specific language governing permissions and\r
-    limitations under the License.\r
-\r
--->\r
-<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
-       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
-       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
-       http://www.springframework.org/schema/beans   \r
-       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
-\r
-       <!-- No sets so that the equals methods are not called -->\r
-       <list id="executionFlowDescriptorConverters"\r
-               interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"\r
-               cardinality="0..N">\r
-               <listener ref="modulesManager" />\r
-       </list>\r
-\r
-       <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
-               cardinality="0..N">\r
-               <listener ref="modulesManager" />\r
-       </list>\r
-\r
-       <list id="executionFlows" interface="org.argeo.slc.execution.ExecutionFlow"\r
-               cardinality="0..N">\r
-               <listener ref="modulesManager" />\r
-       </list>\r
-\r
-</beans:beans>
\ No newline at end of file
index ea4910b6f0a9f75a9d7dca6d34f29a87b4e22f9f..5418405782ec25c01b9351c838fa75bcebadec8f 100644 (file)
@@ -25,7 +25,7 @@ import java.util.UUID;
 \r
 import org.argeo.slc.execution.ExecutionFlowDescriptor;\r
 import org.argeo.slc.execution.ExecutionStep;\r
-import org.argeo.slc.process.RealizedFlow;\r
+import org.argeo.slc.execution.RealizedFlow;\r
 import org.argeo.slc.process.SlcExecution;\r
 import org.argeo.slc.process.SlcExecutionStep;\r
 import org.argeo.slc.unit.execution.ExecutionFlowDescriptorTestUtils;\r