summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/ObjectFactory.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-06-26 18:32:47 +0000
committerGordon Sim <gsim@apache.org>2013-06-26 18:32:47 +0000
commitd9b6126f622c77f440957c080614fc985f2896e0 (patch)
treef79deb2e498197fe712ccc6c864de9e6a434b30c /cpp/src/qpid/broker/ObjectFactory.cpp
parentd31b45cc158704e40f3ccd8ea6d3731800464ec6 (diff)
downloadqpid-python-d9b6126f622c77f440957c080614fc985f2896e0.tar.gz
QPID-4919: Allow definition of topics in AMQP 1.0, composed of an exchange and subscription queue configuration
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1497036 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/ObjectFactory.cpp')
-rw-r--r--cpp/src/qpid/broker/ObjectFactory.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/ObjectFactory.cpp b/cpp/src/qpid/broker/ObjectFactory.cpp
index 5bd516c351..2dd182c428 100644
--- a/cpp/src/qpid/broker/ObjectFactory.cpp
+++ b/cpp/src/qpid/broker/ObjectFactory.cpp
@@ -44,6 +44,16 @@ bool ObjectFactoryRegistry::deleteObject(Broker& broker, const std::string& type
return false;
}
+bool ObjectFactoryRegistry::recoverObject(Broker& broker, const std::string& type, const std::string& name, const qpid::types::Variant::Map& properties,
+ uint64_t persistenceId)
+{
+ for (Factories::iterator i = factories.begin(); i != factories.end(); ++i)
+ {
+ if ((*i)->recoverObject(broker, type, name, properties, persistenceId)) return true;
+ }
+ return false;
+}
+
ObjectFactoryRegistry::~ObjectFactoryRegistry()
{
for (Factories::iterator i = factories.begin(); i != factories.end(); ++i)