Search in sources :

Example 1 with DefaultPaymentProviderPluginRegistry

use of org.killbill.billing.payment.provider.DefaultPaymentProviderPluginRegistry in project killbill by killbill.

the class DefaultPaymentProviderPluginRegistryProvider method get.

@Override
public OSGIServiceRegistration<PaymentPluginApi> get() {
    final DefaultPaymentProviderPluginRegistry pluginRegistry = new DefaultPaymentProviderPluginRegistry(paymentConfig);
    // Make the external payment provider plugin available by default
    final OSGIServiceDescriptor desc = new OSGIServiceDescriptor() {

        @Override
        public String getPluginSymbolicName() {
            return null;
        }

        @Override
        public String getPluginName() {
            return ExternalPaymentProviderPlugin.PLUGIN_NAME;
        }

        @Override
        public String getRegistrationName() {
            return ExternalPaymentProviderPlugin.PLUGIN_NAME;
        }
    };
    pluginRegistry.registerService(desc, externalPaymentProviderPlugin);
    return pluginRegistry;
}
Also used : DefaultPaymentProviderPluginRegistry(org.killbill.billing.payment.provider.DefaultPaymentProviderPluginRegistry) OSGIServiceDescriptor(org.killbill.billing.osgi.api.OSGIServiceDescriptor)

Aggregations

OSGIServiceDescriptor (org.killbill.billing.osgi.api.OSGIServiceDescriptor)1 DefaultPaymentProviderPluginRegistry (org.killbill.billing.payment.provider.DefaultPaymentProviderPluginRegistry)1