Kill Bill OSGI Hello World bundle

Kill Bill Hello World plugin

License

License

Categories

Categories

Java Languages
GroupId

GroupId

org.kill-bill.billing.plugin.java
ArtifactId

ArtifactId

hello-world-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

Kill Bill OSGI Hello World bundle
Kill Bill Hello World plugin
Project URL

Project URL

http://github.com/killbill/killbill-hello-world-java-plugin
Source Code Management

Source Code Management

http://github.com/killbill/killbill-hello-world-java-plugin/tree/master

Download hello-world-plugin

Dependencies

provided (5)

Group / Artifact Type Version
com.google.code.findbugs : jsr305 jar 3.0.2
javax.servlet : javax.servlet-api jar 3.1.0
org.kill-bill.billing : killbill-api jar 0.51.27
org.kill-bill.billing.plugin : killbill-plugin-api-notification jar 0.24.8
org.kill-bill.billing.plugin : killbill-plugin-api-payment jar 0.24.8

test (1)

Group / Artifact Type Version
org.kill-bill.billing.plugin.java : killbill-base-plugin test-jar 2.4.0

Project Modules

There are no modules declared in this project.

killbill-hello-world-java-plugin

Hello World Kill Bill plugin in Java. It shows how to:

  • Build an OSGI plugin using Maven
  • Listen to Kill Bill events
  • Call Kill Bill APIs from the plugin
  • Register a custom HTTP servlet

Getting Started

To build, run mvn clean install. You can then install the plugin locally:

kpm install_java_plugin helloworld --from-source-file target/hello-world-plugin-*-SNAPSHOT.jar --destination /var/tmp/bundles

You can also use it as a template for your own plugins:

curl https://codeload.github.com/killbill/killbill-hello-world-java-plugin/tar.gz/master | tar zxvf - --strip-components=1
rm -rf .circleci LICENSE .idea/copyright

PACKAGE=acme
PREFIX=Acme

mv src/main/java/org/killbill/billing/plugin/helloworld src/main/java/org/killbill/billing/plugin/$PACKAGE
find . -name 'HelloWorld*.java' -exec bash -c 'mv $0 ${0/HelloWorld/'$PREFIX'}' {} \;

find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/org\.killbill\.billing\.plugin\.helloworld/org\.killbill\.billing\.plugin\.'$PACKAGE'/g'
find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/HelloWorld/'$PREFIX'/g'
find pom.xml src -type f -print0 | xargs -0 sed -i '' 's/helloWorld/'$PACKAGE'/g'
find .idea pom.xml src -type f -print0 | xargs -0 sed -i '' 's/hello-world-/'$PACKAGE'-/g'

Finally, modify the pom.xml with your own Git urls.

About

Kill Bill is the leading Open-Source Subscription Billing & Payments Platform. For more information about the project, go to https://killbill.io/.

org.kill-bill.billing.plugin.java

Kill Bill

Kill Bill has been the leading open-source platform for billing and payment since 2010.

Versions

Version
1.0.0