Skip to content
Demo shows the usage of SPI (Service Provider Interface) in java.
Java
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app first commit Jan 16, 2019
plugin-api first commit Jan 16, 2019
plugin-division first commit Jan 16, 2019
plugin-plus first commit Jan 16, 2019
README.md first commit Jan 16, 2019
pom.xml first commit Jan 16, 2019

README.md

Introduction

Just a demo which shows the usage of SPI(Service Provider Interface) in java.

How to use

Run SpiTest in IDEA, and you will see the result:

NumberA: 6, NumberB: 3
Operation: division
2
Operation: plus
9

Componets

  • plugin-api : api interface
  • plugin-division : division plugin implements the interface
  • plugin-plus : plus plugin implements the interface
  • app : entry to run the plugins
You can’t perform that action at this time.