require 'java' require 'singleton' require 'killbill/creator' require 'killbill/plugin' include Java module Killbill module Plugin java_package 'org.killbill.billing.notification.plugin.api' class JNotification < JPlugin include org.killbill.billing.notification.plugin.api.NotificationPluginApi def initialize(real_class_name, services = {}) super(real_class_name, services) end java_signature 'void onEvent(Java::org.killbill.billing.notification.plugin.api.ExtBusEvent)' def on_event(*args) do_call_handle_exception(__method__, *args) do |res| return nil end end end end end