Interface AzkarraRestExtension
-
- All Superinterfaces:
AutoCloseable,Closeable,Configurable
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 JavaServiceLoadermechanism. Hence, the fully qualified name of the extension classes that implement theAzkarraRestExtensioninterface must be add to aMETA-INF/services/io.streamthoughts.azkarra.api.server.AzkarraRestExtensionfile.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconfigure(Conf configuration)Configures this instance with the specifiedConf.voidregister(AzkarraRestExtensionContext restContext)TheAzkarraRestExtensionimplementations 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:
configurein interfaceConfigurable- Parameters:
configuration- theConfinstance used to configure this instance.
-
register
void register(AzkarraRestExtensionContext restContext)
TheAzkarraRestExtensionimplementations should use this method to register JAX-RS resources.- Parameters:
restContext- theAzkarraRestExtensionContextinstance.
-
-