summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/ConnectionFactory.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-01-16 20:17:50 +0000
committerAlan Conway <aconway@apache.org>2007-01-16 20:17:50 +0000
commitbc84e62cc549ac2d751a45d61a867354c84c60d6 (patch)
tree160824086ea1edfd2d28f153626d378d69d0f516 /cpp/lib/broker/ConnectionFactory.h
parent0df54842626c3cc065cad1a2595458f54253a178 (diff)
downloadqpid-python-bc84e62cc549ac2d751a45d61a867354c84c60d6.tar.gz
* Renamed Session* classes to Connection* to align with AMQP spec
- broker::SessionHandlerImpl -> broker::Connection - broker::SessionHandlerImplFactory -> broker::ConnectionFactory - sys::SessionHandler -> ConnectionInputHandler - sys::SessionHandlerFactory -> ConnectionInputHandlerFactory git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/ConnectionFactory.h')
-rw-r--r--cpp/lib/broker/ConnectionFactory.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/cpp/lib/broker/ConnectionFactory.h b/cpp/lib/broker/ConnectionFactory.h
new file mode 100644
index 0000000000..fe8052ed9c
--- /dev/null
+++ b/cpp/lib/broker/ConnectionFactory.h
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+#ifndef _ConnectionFactory_
+#define _ConnectionFactory_
+
+#include "ConnectionInputHandlerFactory.h"
+
+namespace qpid {
+namespace broker {
+class Broker;
+
+class ConnectionFactory : public qpid::sys::ConnectionInputHandlerFactory
+{
+ public:
+ ConnectionFactory(Broker& b);
+
+ virtual qpid::sys::ConnectionInputHandler* create(qpid::sys::SessionContext* ctxt);
+
+ virtual ~ConnectionFactory();
+
+ private:
+ Broker& broker;
+};
+
+}}
+
+
+#endif