# File lib/handler/wrapped_handler.rb, line 37
    def initialize(impl_or_constructor)
      if impl_or_constructor.is_a?(Method)
        @impl = impl_or_constructor.call
      else
        @impl = impl_or_constructor
        Cproton.pn_incref(@impl)
      end
      @on_error = nil
      self.class.store_instance(self)
    end