Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Service provider interface
API intended to be implemented

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.

We don't have any images related to Service provider interface yet.
We don't have any YouTube videos related to Service provider interface yet.
We don't have any PDF documents related to Service provider interface yet.
We don't have any Books related to Service provider interface yet.
We don't have any archived web articles related to Service provider interface yet.

Details

From Java documentation:

A service is a well-known set of interfaces and (usually abstract) classes. A service provider is a specific implementation of a service. The classes in a provider typically implement the interfaces and subclass the classes defined in the service itself. Service providers can be installed in an implementation of the Java platform in the form of extensions, that is, jar files placed into any of the usual extension directories. Providers can also be made available by adding them to the application's class path or by some other platform-specific means.4

The concept can be extended to other platforms using the corresponding tools. In the Java Runtime Environment, SPIs are used in:56

See also

References

  1. "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 http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html

  2. Thribhuvan Thakur (November 18, 2009). "Service Provider Interface: Creating Extensible Java Applications". Developer.com. 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. http://www.developer.com/java/article.php/3848881/Service-Provider-Interface-Creating-Extensible-Java-Applications.htm

  3. Seacord, C. Robert & Wrage, Lutz (July 2002). "Replaceable Components and the Service Provider Interface". Software Engineering Institute (CMU). http://resources.sei.cmu.edu/library/asset-view.cfm?assetid=5901

  4. "ServiceLoader". http://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html

  5. "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 http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html

  6. Thribhuvan Thakur (November 18, 2009). "Service Provider Interface: Creating Extensible Java Applications". Developer.com. 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. http://www.developer.com/java/article.php/3848881/Service-Provider-Interface-Creating-Extensible-Java-Applications.htm