java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.RegistryEntry

public class RegistryEntry extends Object
A RegistryEntry object represents an object in the registry.
  • Constructor Details

    • RegistryEntry

      public RegistryEntry()
      Constructs a new RegistryEntry object.
    • RegistryEntry

      public RegistryEntry(String name, Class<?>[] interfaces, String location, String path)
      Constructs a new RegistryEntry object.
      Parameters:
      name - the name of the registered object
      interfaces - the interfaces of the registered object
      location - the location part of the registered object's URL
      path - the path part of the registered object's URL
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of the registered object.
      Parameters:
      name - the name of the registered object
    • getName

      public String getName()
      Gets the name of the registered object.
      Returns:
      the name of the registered object
    • setInterfaces

      public void setInterfaces(Class<?>[] interfaces)
      Sets the interfaces of the registered object.
      Parameters:
      interfaces - the interfaces of the registered object
    • getInterfaces

      public Class<?>[] getInterfaces()
      Gets the interfaces of the registered object.
      Returns:
      the interfaces of the registered object
    • setLocation

      public void setLocation(String location)
      Sets the location of the registered object.
      Parameters:
      location - the location of the registered object
    • getLocation

      public String getLocation()
      Gets the location of the registered object.
      Returns:
      the location of the registered object
    • setPath

      public void setPath(String path)
      Sets the path of the registered object.
      Parameters:
      path - the path of the registered object
    • getPath

      public String getPath()
      Gets the path of the registered object.
      Returns:
      the path of the registered object
    • toJson

      public String toJson()
      Converts the registry entry to JSON.
      Returns:
      a JSON object string representing the registry entry
    • fromJson

      public static RegistryEntry fromJson(String serialized)
      Converts a serialized JSON registry entry to a RegistryEntry object.
      Parameters:
      serialized - a JSON object string containing the registry entry
      Returns:
      the deserialized registry entry