Class Microservice

java.lang.Object
edu.university.ecs.lab.common.models.Microservice
All Implemented Interfaces:
JsonSerializable

public class Microservice extends Object implements JsonSerializable
Represents the overarching structure of a microservice system. It is composed of classes which hold all information in that class.
  • Constructor Details

    • Microservice

      public Microservice(String name, String path)
  • Method Details

    • toJsonObject

      public com.google.gson.JsonObject toJsonObject()
      Specified by:
      toJsonObject in interface JsonSerializable
    • addJClass

      public void addJClass(JClass jClass)
    • removeJClass

      public void removeJClass(String path)
      This method removes a JClass from the microservice by looking up it's path
      Parameters:
      path - the path to search for removal
    • getClasses

      public Set<JClass> getClasses()
      This method returns all classes of the microservice in a new set
      Returns:
      the set of all JClasses