Service provider interface (SPI) is an API intended to be implemented or extended by a third party. It can be used to enable framework extension and replaceable components.[1][2][3]
Details
From Java documentation:
See also
References
- 1 2 "Introduction to the Service Provider Interfaces". Oracle Java Documentation.
Services are units of sound-handling functionality that are automatically available when an application program makes use of an implementation of the Java Sound API
- 1 2 Thribhuvan Thakur (November 18, 2009). "Service Provider Interface: Creating Extensible Java Applications". Developer.com. Archived from the original on November 22, 2009. Retrieved August 20, 2010.
A service provider interface (SPI) is the set of public interfaces and abstract classes that a service defines. A SPI may be represented by a single interface (type) or abstract class or a set of interfaces or abstract classes that define the service contract.
- ↑ Seacord, C. Robert & Wrage, Lutz (July 2002). "Replaceable Components and the Service Provider Interface". Software Engineering Institute (CMU).
- ↑ "ServiceLoader".
External links
- Replaceable Components and the Service Provider Interface (.pdf at The Software Engineering Institute CMU)
- Official Java API documentation: java.util.class and [http://com/javase/4/docs/api/java/util/spi/package-estary.html java.util.spi package
