package org.myrobotlab.service.meta;

import org.myrobotlab.framework.Platform;
import org.myrobotlab.logging.LoggerFactory;
import org.myrobotlab.service.meta.abstracts.MetaData;
import org.slf4j.Logger;

public class RuntimeMeta extends MetaData {
  private static final long serialVersionUID = 1L;
  public final static Logger log = LoggerFactory.getLogger(RuntimeMeta.class);

  /**
   * This class is contains all the meta data details of a service. It's peers,
   * dependencies, and all other meta data related to the service.
   * 
   */
  public RuntimeMeta(String name) {

    super(name);
    Platform platform = Platform.getLocalInstance();
    addDescription("is a singleton service responsible for the creation, starting, stopping, releasing and registration of all other services");
    addCategory("framework");

    includeServiceInOneJar(true);
    // apache 2.0 license
    addDependency("com.google.code.gson", "gson", "2.8.5");
    // apache 2.0 license
    addDependency("org.yaml", "snakeyaml", "1.17");
    // apache 2.0 license
    addDependency("org.apache.ivy", "ivy", "2.4.0-5");
    // apache 2.0 license
    addDependency("org.apache.httpcomponents", "httpclient", "4.5.2");
    // apache 2.0 license
    addDependency("org.atmosphere", "wasync", "2.1.5");
    // apache 2.0 license
    addDependency("info.picocli", "picocli", "4.4.0");

    // all your logging needs
    addDependency("org.slf4j", "slf4j-api", "1.7.21");
    addDependency("ch.qos.logback", "logback-classic", "1.0.13");
    addDependency("org.yaml", "snakeyaml", "1.29");

    // addDependency("org.apache.maven", "maven-embedder", "3.1.1");
    // addDependency("ch.qos.logback", "logback-classic", "1.2.3");

  }

}

@@ -589,24 +589,121 @@
 uper(name);%0A
+    // TODO: can we remove this line?  it's not used locally, but it does initialize Platform...%0A
     Platform
@@ -743,16 +743,16 @@
 ance();%0A
-
     addD
@@ -914,25 +914,24 @@
 ramework%22);%0A
-%0A
     includeS
@@ -1068,86 +1068,8 @@
 nse%0A
-    addDependency(%22org.yaml%22, %22snakeyaml%22, %221.17%22);%0A    // apache 2.0 license%0A
     
@@ -1375,25 +1375,24 @@
 , %224.4.0%22);%0A
-%0A
     // all y
@@ -1526,24 +1526,56 @@
  %221.0.13%22);%0A
+    // for config file support.%0A
     addDepen
@@ -1619,146 +1619,8 @@
 );%0A%0A
-    // addDependency(%22org.apache.maven%22, %22maven-embedder%22, %223.1.1%22);%0A    // addDependency(%22ch.qos.logback%22, %22logback-classic%22, %221.2.3%22);%0A%0A
   %7D%0A

clean up runtime meta