Package jmri.spi


@DefaultAnnotation({}) package jmri.spi
Interfaces that can be implemented outside the JMRI.jar file to implement new behavior in JMRI. Implementing classes need to be included in the containing JAR's META-INF.services directory per the Java Service Provider Interface (SPI) standards. The JmriServiceProviderInterface interface serves to identify the semantics of being a JMRI-specific SPI. Within the JMRI code, it is possible to use @org.openide.util.lookup.ServiceProvider(service = INTERFACE) just before the class declaration to have the class automatically included in the JAR's META-INF.services directory, where INTERFACE is the interface to be implemented.
See Also:
  • Interfaces
    Class
    Description
    Implementing or extending interfaces are available as Java Service Provider Interfaces (SPI) within JMRI applications.
    Factory interface for JSON services.
    An API for Java Service Providers that manage preferences within JMRI.