Interface AzkarraRestExtension
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Configurable
- All Known Implementing Classes:
PrometheusEndpoint.PrometheusEndpointExtension
public interface AzkarraRestExtension extends Configurable, Closeable
A pluggable interface to allow registration of new JAX-RS resources like REST endpoints. The implementations are discovered using the standard JavaServiceLoader
mechanism. Hence, the fully qualified name of the extension classes that implement theAzkarraRestExtension
interface must be add to aMETA-INF/services/io.streamthoughts.azkarra.api.server.AzkarraRestExtension
file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
configure(Conf configuration)
Configures this instance with the specifiedConf
.void
register(AzkarraRestExtensionContext restContext)
TheAzkarraRestExtension
implementations should use this method to register JAX-RS resources.
-
-
-
Method Detail
-
configure
default void configure(Conf configuration)
Configures this instance with the specifiedConf
. The configuration passed to the method correspond used for configuring theEmbeddedHttpServer
- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
register
void register(AzkarraRestExtensionContext restContext)
TheAzkarraRestExtension
implementations should use this method to register JAX-RS resources.- Parameters:
restContext
- theAzkarraRestExtensionContext
instance.
-
-