PROTON-781: Added the BaseHandler class to the Ruby reactive APIs. This is the Ruby analog to the Handler class from Python. It needed to be renamed, though, since it's in the Qpid::Proton namespace but would collide with the Qpid::Proton::Handler namespace.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2bab02c8 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2bab02c8 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2bab02c8 Branch: refs/heads/cjansen-cpp-client Commit: 2bab02c8fda367e9a3e3a5cb8c07dc0443732094 Parents: deec926 Author: Darryl L. Pierce <[email protected]> Authored: Wed Feb 25 13:30:30 2015 -0500 Committer: Darryl L. Pierce <[email protected]> Committed: Thu Jun 18 16:28:43 2015 -0400 ---------------------------------------------------------------------- proton-c/bindings/ruby/lib/core/base_handler.rb | 31 ++++++++++++++++++++ proton-c/bindings/ruby/lib/qpid_proton.rb | 1 + 2 files changed, 32 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2bab02c8/proton-c/bindings/ruby/lib/core/base_handler.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/core/base_handler.rb b/proton-c/bindings/ruby/lib/core/base_handler.rb new file mode 100644 index 0000000..9a7ece4 --- /dev/null +++ b/proton-c/bindings/ruby/lib/core/base_handler.rb @@ -0,0 +1,31 @@ +#-- +# 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. +#++ + +module Qpid::Proton + + class BaseHandler + + # Override to process unhandled events. + # + def on_unhandled(method, *args) + end + + end + +end http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2bab02c8/proton-c/bindings/ruby/lib/qpid_proton.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/qpid_proton.rb b/proton-c/bindings/ruby/lib/qpid_proton.rb index e14ff9d..ef7f300 100644 --- a/proton-c/bindings/ruby/lib/qpid_proton.rb +++ b/proton-c/bindings/ruby/lib/qpid_proton.rb @@ -74,6 +74,7 @@ require "core/ssl_domain" require "core/ssl_details" require "core/ssl" require "core/transport" +require "core/base_handler" # Messenger API classes require "messenger/subscription" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
