Class RegistryEntry
- 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 Summary
Constructors Constructor Description RegistryEntry()
Constructs a new RegistryEntry object.RegistryEntry(String name, Class<?>[] interfaces, String location, String path)
Constructs a new RegistryEntry object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegistryEntry
fromJson(String serialized)
Converts a serialized JSON registry entry to a RegistryEntry object.Class<?>[]
getInterfaces()
Gets the interfaces of the registered object.String
getLocation()
Gets the location of the registered object.String
getName()
Gets the name of the registered object.String
getPath()
Gets the path of the registered object.void
setInterfaces(Class<?>[] interfaces)
Sets the interfaces of the registered object.void
setLocation(String location)
Sets the location of the registered object.void
setName(String name)
Sets the name of the registered object.void
setPath(String path)
Sets the path of the registered object.String
toJson()
Converts the registry entry to JSON.
-
-
-
Constructor Detail
-
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 objectinterfaces
- the interfaces of the registered objectlocation
- the location part of the registered object's URLpath
- the path part of the registered object's URL
-
-
Method Detail
-
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
-
-