Looking into java service provider interface (SPI). Learning by example.

preview_player
Показать описание
I took a look at the service provider interface in java. This is a needed interface to build simple services using easy building blocks to extend and improve programs or libraries. We will create one example and also look into some tools that use this interface already.

Repository:

Leverage AI in your software development workflow. Enhance your skills as a software developer, grow your career, and stay competitive in this fast-paced industry.

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

#java #service #spi
Рекомендации по теме
Комментарии
Автор

Thank you for the video! very interesting! I saw a project with SPI and didn’t even know what it was, now it’s a little clearer! Sorry for my English)

marko-pololo
Автор

It was a good example. Thank you for teaching java service provider interface.

БажанКозаченко
Автор

I hoped to find the Java9 version of this, but this Java6 version is a nice introduction, I learned something new, thanks

Aragorn.Strider
Автор

Hello Daniel, thank you for refresher, such a short and sweet video. Are SPIs used primarily for compile-time extensions or runtime extensions? If I recompile a classfile of a plugin and ask ServiceLoader to load it again, will it load the updated classfile, or do I need exert additional effort to unload the previous version from memory?

roman_mf
Автор

Very nice Daniel! So then some jar can hijack interfaces?! Oo

If you could do a video about Java Annotation Processor it would be great *-*

LeandroCoutinho
Автор

Hi Daniel, in the video you have mentioned for the serviceLoader to detect classes we have to mention the fully qualified class names under META-INF directory. I am wondering how does twelwemonkeys implementation is discovered wthout it?

GK-rldu