Class RegistryEntry
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.RegistryEntry
A RegistryEntry object represents an object in the registry.
-
Constructor Summary
ConstructorDescriptionConstructs a new RegistryEntry object.RegistryEntry
(String name, Class<?>[] interfaces, String location, String path) Constructs a new RegistryEntry object. -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryEntry
Converts a serialized JSON registry entry to a RegistryEntry object.Class<?>[]
Gets the interfaces of the registered object.Gets the location of the registered object.getName()
Gets the name of the registered object.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
Sets the name of the registered object.void
Sets the path of the registered object.toJson()
Converts the registry entry to JSON.
-
Constructor Details
-
RegistryEntry
public RegistryEntry()Constructs a new RegistryEntry object. -
RegistryEntry
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 Details
-
setName
Sets the name of the registered object.- Parameters:
name
- the name of the registered object
-
getName
Gets the name of the registered object.- Returns:
- the name of the registered object
-
setInterfaces
Sets the interfaces of the registered object.- Parameters:
interfaces
- the interfaces of the registered object
-
getInterfaces
Gets the interfaces of the registered object.- Returns:
- the interfaces of the registered object
-
setLocation
Sets the location of the registered object.- Parameters:
location
- the location of the registered object
-
getLocation
Gets the location of the registered object.- Returns:
- the location of the registered object
-
setPath
Sets the path of the registered object.- Parameters:
path
- the path of the registered object
-
getPath
Gets the path of the registered object.- Returns:
- the path of the registered object
-
toJson
Converts the registry entry to JSON.- Returns:
- a JSON object string representing the registry entry
-
fromJson
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
-