90 Public method to register an object in the object registry. |
90 Public method to register an object in the object registry. |
91 |
91 |
92 @param name name of the object |
92 @param name name of the object |
93 @type str |
93 @type str |
94 @param objectRef reference to the object |
94 @param objectRef reference to the object |
95 @type any |
95 @type Any |
96 @exception KeyError raised when the given name is already in use |
96 @exception KeyError raised when the given name is already in use |
97 """ |
97 """ |
98 if name in self.__objectRegistry: |
98 if name in self.__objectRegistry: |
99 raise KeyError('Object "{0}" already registered.'.format(name)) |
99 raise KeyError('Object "{0}" already registered.'.format(name)) |
100 else: |
100 else: |
105 Public method to get a reference to a registered object. |
105 Public method to get a reference to a registered object. |
106 |
106 |
107 @param name name of the object |
107 @param name name of the object |
108 @type str |
108 @type str |
109 @return reference to the registered object |
109 @return reference to the registered object |
110 @rtype any |
110 @rtype Any |
111 @exception KeyError raised when the given name is not known |
111 @exception KeyError raised when the given name is not known |
112 """ |
112 """ |
113 if name not in self.__objectRegistry: |
113 if name not in self.__objectRegistry: |
114 raise KeyError('Object "{0}" is not registered.'.format(name)) |
114 raise KeyError('Object "{0}" is not registered.'.format(name)) |
115 |
115 |
120 Public method to register a plugin object in the object registry. |
120 Public method to register a plugin object in the object registry. |
121 |
121 |
122 @param name name of the plugin object |
122 @param name name of the plugin object |
123 @type str |
123 @type str |
124 @param objectRef reference to the plugin object |
124 @param objectRef reference to the plugin object |
125 @type any |
125 @type Any |
126 @param pluginType type of the plugin object |
126 @param pluginType type of the plugin object |
127 @type str |
127 @type str |
128 @exception KeyError raised when the given name is already in use |
128 @exception KeyError raised when the given name is already in use |
129 """ |
129 """ |
130 if name in self.__pluginObjectRegistry: |
130 if name in self.__pluginObjectRegistry: |
147 Public method to get a reference to a registered plugin object. |
147 Public method to get a reference to a registered plugin object. |
148 |
148 |
149 @param name name of the plugin object |
149 @param name name of the plugin object |
150 @type str |
150 @type str |
151 @return reference to the registered plugin object |
151 @return reference to the registered plugin object |
152 @rtype any |
152 @rtype Any |
153 @exception KeyError raised when the given name is not known |
153 @exception KeyError raised when the given name is not known |
154 """ |
154 """ |
155 if name not in self.__pluginObjectRegistry: |
155 if name not in self.__pluginObjectRegistry: |
156 raise KeyError('Pluginobject "{0}" is not registered.'.format(name)) |
156 raise KeyError('Pluginobject "{0}" is not registered.'.format(name)) |
157 |
157 |