Sha256: cec94d9dfd1fb58d55f97f5ee31711e00606d27e4f1db7c1d608bd2110f6bbf3

Contents?: true

Size: 1.89 KB

Versions: 6

Compression:

Stored size: 1.89 KB

Contents

begin
  require 'java'

  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
    javax.servlet.http.HttpServlet
  )

  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

  # jbundler needs to be loaded first!
  require 'killbill/jplugin'
  require 'killbill/jpayment'
rescue LoadError => e
  warn 'You need JRuby to run Killbill plugins'
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
killbill-1.0.14 lib/killbill.rb
killbill-1.0.13 lib/killbill.rb
killbill-1.0.12 lib/killbill.rb
killbill-1.0.11 lib/killbill.rb
killbill-1.0.10 lib/killbill.rb
killbill-1.0.9 lib/killbill.rb