diff options
author | Joe George <joe@zeroc.com> | 2015-12-08 11:33:42 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-12-08 16:09:24 -0500 |
commit | 6a43686ce26de5d2d5edf4a485ecff3a242c26b6 (patch) | |
tree | d31e4f16dc9ed6e28056a7224e045a4638955f5e /ruby/src/IceRuby/ObjectFactory.h | |
parent | C++11 mapping IceDiscovery plug-in (diff) | |
download | ice-6a43686ce26de5d2d5edf4a485ecff3a242c26b6.tar.bz2 ice-6a43686ce26de5d2d5edf4a485ecff3a242c26b6.tar.xz ice-6a43686ce26de5d2d5edf4a485ecff3a242c26b6.zip |
ICE-6908 - Add ValueFactory
ValueFactory is a replacement for ObjectFactory (which is still
available if needed). It is an interface with only one operation
and can has the "delegate" metadata.
Diffstat (limited to 'ruby/src/IceRuby/ObjectFactory.h')
-rw-r--r-- | ruby/src/IceRuby/ObjectFactory.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ruby/src/IceRuby/ObjectFactory.h b/ruby/src/IceRuby/ObjectFactory.h index 152f73f8425..0d5c29a7d6a 100644 --- a/ruby/src/IceRuby/ObjectFactory.h +++ b/ruby/src/IceRuby/ObjectFactory.h @@ -34,14 +34,17 @@ public: virtual void destroy(); - void add(VALUE, const std::string&); - VALUE find(const std::string&); + void addValueFactory(VALUE, const std::string&); + VALUE findValueFactory(const std::string&); + void addObjectFactory(VALUE, const std::string&); + VALUE findObjectFactory(const std::string&); void mark(); private: typedef std::map<std::string, VALUE> FactoryMap; - FactoryMap _factoryMap; + FactoryMap _valueFactoryMap; + FactoryMap _objectFactoryMap; }; typedef IceUtil::Handle<ObjectFactory> ObjectFactoryPtr; |