Service Provider Interface
Ein Service Provider Interface (SPI) ist ein Application Programming Interface (API), das durch eine Drittkomponente implementiert werden soll. Es dient dazu, F…
Ein Service Provider Interface (SPI) ist ein Application Programming Interface (API), das durch eine Drittkomponente implementiert werden soll. Es dient dazu, Framework-Erweiterungen zu ermöglichen und trägt zur Entwicklung austauschbarer Komponenten bei.
Details
API werden meistens als provided interfaces verstanden, d. h. Schnittstellen, die durch die sie implementierende Komponente definiert werden. D. h. eine Komponente hat die Hoheit über die Interfacedefinition und stellt mindestens eine Implementation (meistens die einzige Implementation) zur Verfügung. Beispiele für provided interfaces sind alle öffentlich aufrufbaren proprietären und keinem Standard entsprechenden REST-API der großen Cloudanbieter wie Amazon Web Services, Microsoft Azure und Google Cloud Platform.
Ein SPI hingegen bezeichnet ein required interface, also eine Schnittstellenspezifikation, die von einer bestimmten davon abhängigen Komponente verlangt bzw. erwartet wird. Ein Programm, das Plug-ins unterstützt, wird zum Beispiel required interfaces definieren, die von den Entwicklern von Plug-ins eingehalten werden müssen. Ebenso wird eine Komponente, die sich ihre Abhängigkeiten per Dependency Injection übergeben lässt, für jede Abhängigkeit ein required interface definieren, das die Syntax und Semantik (Kommunikationsprotokoll) der Interaktion damit vorgibt.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.