Sha256: a59fcf295c2b5b92b7805f62e7467365351bf5e3c58109f63332ad9659ca0d4a

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

begin
  require 'java'
rescue LoadError => e
  warn 'You need JRuby to run Killbill plugins'
  raise e
end

KILLBILL_APIS = %w(
  com.ning.billing.account.api.AccountUserApi
  com.ning.billing.analytics.api.sanity.AnalyticsSanityApi
  com.ning.billing.analytics.api.user.AnalyticsUserApi
  com.ning.billing.catalog.api.CatalogUserApi
  com.ning.billing.entitlement.api.migration.EntitlementMigrationApi
  com.ning.billing.entitlement.api.timeline.EntitlementTimelineApi
  com.ning.billing.entitlement.api.transfer.EntitlementTransferApi
  com.ning.billing.entitlement.api.user.EntitlementUserApi
  com.ning.billing.invoice.api.InvoiceMigrationApi
  com.ning.billing.invoice.api.InvoicePaymentApi
  com.ning.billing.invoice.api.InvoiceUserApi
  com.ning.billing.overdue.OverdueUserApi
  com.ning.billing.payment.api.PaymentApi
  com.ning.billing.tenant.api.TenantUserApi
  com.ning.billing.usage.api.UsageUserApi
  com.ning.billing.util.api.AuditUserApi
  com.ning.billing.util.api.CustomFieldUserApi
  com.ning.billing.util.api.ExportUserApi
  com.ning.billing.util.api.TagUserApi
)

begin
  KILLBILL_APIS.each { |api| java_import api }
rescue NameError
  # killbill-api should be provided by the JRuby OSGI bundle. We default to using JBundler for development purposes only
  begin
    require 'jbundler'
    KILLBILL_APIS.each { |api| java_import api }
    warn 'Using JBundler to load killbill-api (see .jbundler/classpath.rb). This should only happen in development mode!'
  rescue LoadError => e
    warn 'Unable to load killbill-api. For development purposes, use JBundler (create the following Jarfile: http://git.io/eobYXA and run: `bundle install && jbundle install\')'
  end
end

require 'killbill/http_servlet'
require 'killbill/notification'
require 'killbill/payment'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
killbill-1.0.2 lib/killbill.rb
killbill-1.0.1 lib/killbill.rb