Skip to content

zak905/java-service-loader-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Demonstration of java.util.ServiceLoader usage

The project contains the following modules:

  • common: contains the interface TaskExecuter to be implemented
  • module1: contains the first implementation
  • module2: contains the second implementation
  • main: uses the the ServiceLoader to load all the implementations

How to run:

from an IDE, you can directly run the main class in the main module.

from a terminal, you can run: mvn install && mvn -f main exec:java

About

Demonstration of java.util.ServiceLoader usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages