Class LocalComponentRegistry
- java.lang.Object
-
- org.palladiosimulator.protocom.framework.java.ee.prototype.LocalComponentRegistry
-
public final class LocalComponentRegistry extends Object
The LocalComponentRegistry singleton provides methods for registering components and systems. It is used to transfer references of components and systems to their respective ports.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponent(String id, Object component)
Adds a component or system to the local registry.Object
getComponent(String id)
Gets the component or system with the specified ID.static LocalComponentRegistry
getInstance()
Singleton accessor.
-
-
-
Method Detail
-
getInstance
public static LocalComponentRegistry getInstance()
Singleton accessor.- Returns:
- the component registry instance
-
addComponent
public void addComponent(String id, Object component)
Adds a component or system to the local registry.- Parameters:
id
- the ID of the component or systemcomponent
- the component or system obejct
-
-