Liberty SPI utilities
Liberty provides service programming interfaces (SPI) to complete various tasks.
Subtopics
- Resource location symbols
Liberty user configuration is made more portable through the use of variables that represent symbolic locations. Use of these variables helps to prevent the coding of absolute paths that would make the user configuration brittle and less portable. Feature code that receives configuration properties might have to deal with values that contain such variables. - Monitoring local files for changes
Liberty has highly dynamic behavior, responding to changes in configuration, applications and other resources. Much of this dynamic behavior is based on monitoring of the local file system for changes. The service that performs this monitoring is available to all Liberty features through the FileMonitor SPI. The file monitor service is provided by the Liberty kernel, so you do not have to specify a feature in your server.xml file to make it available. - Configuring tracing and logging for features in Liberty
You can use the tracing and logging mechanism of Liberty for Liberty features. The logging service is part of the Liberty kernel so you do not have to specify a feature in your server.xml file to use it. - Adding web services global handlers
Components that need to register web services handlers to all the web services end points must implement the Handler interface and register that implementation in the service registry. - Adding custom scaling listeners
You can create a custom scaling listener bundle by using WebSphere® Application Server Developer Tools for Eclipse. A custom scaling listener is notified of all pending scaling actions. The listener can then permit or deny the scaling action. It can also decide to handle the action, thus provide a full customization of the scaling behavior. - Exposing REST endpoints within Liberty
You can use the REST Handler framework in the Liberty SPI to expose new REST endpoints.
Parent topic: Developing a Liberty feature for Liberty

File name: rwlp_spi_utils.html