How to Install and Uninstall libspi-java Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 21,2024

1. Install "libspi-java" package

Please follow the step by step instructions below to install libspi-java on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libspi-java

2. Uninstall "libspi-java" package

This is a short guide on how to uninstall libspi-java on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libspi-java $ sudo apt autoclean && sudo apt autoremove

3. Information about the libspi-java package on Ubuntu 21.10 (Impish Indri)

Package: libspi-java
Architecture: all
Version: 0.2.4-3
Priority: extra
Section: universe/java
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Java Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 34
Filename: pool/universe/libs/libspi-java/libspi-java_0.2.4-3_all.deb
Size: 24072
MD5sum: a40b98ff2b6e01e0923ebbd77341321d
SHA1: 11e071211e30f2a5844932f8ee81c0e6bb608809
SHA256: 53a7cf70fdc14907517bae2dc040887025f381e526d60e667fec5d7b261a405e
SHA512: 6de9f88d45e86c6f8462515db9551fff5529b6cbc3fc5a3e8e5f67a2740fed3f2ffd78b5084a35c95735b4a5e11dca3c1feeac7317f3347aa5ec10fec47283c3
Homepage: https://github.com/rspilker/spi
Description-en: Simplifies usage of Java Service Provider Interface
The usage of the Service Provider Interface in Java is a great way to make your
program more extensible. However, implementing and distributing such an
Interface is error prone.
.
One of the reasons is that the system depends on naming schemes and text files.
The name of an implementation should be put in a text file, located on the
classpath in a folder called META-INF/services/.
.
This project allows the programmer to use an Annotation, @ProviderFor, to flag
a class as an implementation of a certain interface. During compilation, the
necessary files are created at the appropriate locations. Also, the class is
inspected to see if it follows all rules applicable to Service Providers.
Compile time errors will be generated if those rules are broken, assisting the
programmer to create more robust code.
Description-md5: f00fcc8dd89b6db66bb152402866b7c3