Service provider interface

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]

## Contents

* 1 Details
* 2 See also
* 3 References
* 4 External links

## 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:[1][2]

* Java Database Connectivity
* Java Cryptography Extension
* Java Naming and Directory Interface
* Java API for XML Processing
* Java Business Integration
* Java Sound
* Java Image I/O
* Java File Systems

## See also

* Plug-in (computing)
* Java (programming language)
* Java (software platform)

## References

1. ↑ 1.0 1.1 "Introduction to the Service Provider Interfaces". Oracle Java Documentation. http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html. "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"
2. ↑ 2.0 2.1 Thribhuvan Thakur (November 18, 2009). "Service Provider Interface: Creating Extensible Java Applications". Developer.com. http://www.developer.com/java/article.php/3848881/Service-Provider-Interface-Creating-Extensible-Java-Applications.htm. "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."
3. ↑ "Replaceable Components and the Service Provider Interface". Software Engineering Institute (CMU). July 2002. 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.

## 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

* v
* t
* e

Java

Platforms|

* Java language
* JVM
* Micro Edition
* Standard Edition
* Enterprise Edition
* Java Card
* Android SDK

Oracle technologies|

* Squawk
* Java Development Kit
* OpenJDK
* Java virtual machine
* JavaFX
* Maxine VM

Platform technologies|

* Applets
* Servlets
* MIDlets
* JSP
* JSF
* Web Start (JNLP)

Major third-party technologies|

* Blackdown
* Eclipse
* GNU Classpath
* GWT
* Harmony
* Hibernate
* IcedTea
* Jazelle
* Spring
* Struts
* TopLink
* WildFly

History|

* Java version history
* Java Community Process
* Sun Microsystems
* Free Java implementations

Major JVM languages|

* BeanShell
* Clojure
* Groovy
* JRuby
* Jython
* Kotlin
* Processing
* Rhino
* Scala

Community|

| Conferences|

* JavaOne
* Devoxx

|

Organizations|

* Apache Software Foundation
* Java Community Process
* Oracle Corporation
* Sun Microsystems, Sun Microsystems Laboratories

People|

* James Gosling
* Arthur van Hoff
* Urs Hölzle
* Patrick Naughton

Category

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Service provider interface. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Service_provider_interface&oldid=4229389"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template