Package kos.api
Class MutableKosContext
- java.lang.Object
-
- kos.api.MutableKosContext
-
- All Implemented Interfaces:
KosContext
public class MutableKosContext extends Object implements KosContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMutableKosContext.AvailablePayloadStrategies-
Nested classes/interfaces inherited from interface kos.api.KosContext
KosContext.RunnerThatMightFail, KosContext.SupplierThatMightFail<T>
-
-
Field Summary
Fields Modifier and Type Field Description private io.vertx.core.json.JsonObjectapplicationConfigprivate MutableKosContext.AvailablePayloadStrategiesavailablePayloadStrategiesprivate io.vertx.config.ConfigRetrieverconfigRetrieverprivate kos.core.client.RestClientSerializerdefaultRestClientSerializerprivate SerializerdefaultSerializerprivate intdefaultStatusForEmptyResponsesprivate io.vertx.core.VertxdefaultVertxprivate io.vertx.ext.web.client.WebClientdefaultVertxWebClientprivate ExceptionHandlerexceptionHandlerprivate io.vertx.core.http.HttpServerOptionshttpServerOptionsprivate ImplementationLoaderimplementationLoaderprivate io.vertx.core.spi.logging.LogDelegateFactorylogDelegateFactoryprivate PayloadSerializationStrategypayloadSerializationStrategyprivate Map<String,kos.core.client.RestClientSerializer>restClientSerializersprivate Map<String,Serializer>serializersprivate ImplementationLoaderspiprivate StringConverterstringConverter
-
Constructor Summary
Constructors Constructor Description MutableKosContext()MutableKosContext(ImplementationLoader spi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> io.vertx.core.Future<T>computeBlocking(KosContext.SupplierThatMightFail<T> supplier)io.vertx.core.logging.LoggercreateLoggerFor(Class type)io.vertx.config.ConfigRetrievergetConfigRetriever()io.vertx.core.VertxgetDefaultVertx()io.vertx.ext.web.client.WebClientgetDefaultVertxWebClient()SerializergetSerializerForContentType(String contentType)private io.vertx.config.ConfigRetrieverloadConfigRetriever()private Map<String,kos.core.client.RestClientSerializer>loadRestClientSerializers()private Map<String,Serializer>loadSerializers()io.vertx.core.json.JsonObjectreadApplicationConfig()io.vertx.core.Future<Void>runBlocking(KosContext.RunnerThatMightFail runner)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface kos.api.KosContext
getDefaultRestClientSerializer, getDefaultSerializer, getDefaultStatusForEmptyResponses, getExceptionHandler, getHttpServerOptions, getImplementationLoader, getLogDelegateFactory, getPayloadSerializationStrategy, getSpi, getStringConverter
-
-
-
-
Field Detail
-
availablePayloadStrategies
private final MutableKosContext.AvailablePayloadStrategies availablePayloadStrategies
-
serializers
private final Map<String,Serializer> serializers
-
restClientSerializers
private final Map<String,kos.core.client.RestClientSerializer> restClientSerializers
-
spi
private final ImplementationLoader spi
-
implementationLoader
private ImplementationLoader implementationLoader
-
payloadSerializationStrategy
private PayloadSerializationStrategy payloadSerializationStrategy
-
defaultStatusForEmptyResponses
private int defaultStatusForEmptyResponses
-
logDelegateFactory
private io.vertx.core.spi.logging.LogDelegateFactory logDelegateFactory
-
httpServerOptions
private io.vertx.core.http.HttpServerOptions httpServerOptions
-
defaultSerializer
private Serializer defaultSerializer
-
defaultRestClientSerializer
private kos.core.client.RestClientSerializer defaultRestClientSerializer
-
defaultVertx
private io.vertx.core.Vertx defaultVertx
-
defaultVertxWebClient
private io.vertx.ext.web.client.WebClient defaultVertxWebClient
-
stringConverter
private StringConverter stringConverter
-
exceptionHandler
private ExceptionHandler exceptionHandler
-
configRetriever
private io.vertx.config.ConfigRetriever configRetriever
-
applicationConfig
private io.vertx.core.json.JsonObject applicationConfig
-
-
Constructor Detail
-
MutableKosContext
public MutableKosContext()
-
MutableKosContext
public MutableKosContext(ImplementationLoader spi)
-
-
Method Detail
-
getConfigRetriever
public io.vertx.config.ConfigRetriever getConfigRetriever()
- Specified by:
getConfigRetrieverin interfaceKosContext
-
loadConfigRetriever
private io.vertx.config.ConfigRetriever loadConfigRetriever()
-
getDefaultVertx
public io.vertx.core.Vertx getDefaultVertx()
- Specified by:
getDefaultVertxin interfaceKosContext
-
getDefaultVertxWebClient
public io.vertx.ext.web.client.WebClient getDefaultVertxWebClient()
- Specified by:
getDefaultVertxWebClientin interfaceKosContext
-
loadSerializers
private Map<String,Serializer> loadSerializers()
-
loadRestClientSerializers
private Map<String,kos.core.client.RestClientSerializer> loadRestClientSerializers()
-
createLoggerFor
public io.vertx.core.logging.Logger createLoggerFor(Class type)
- Specified by:
createLoggerForin interfaceKosContext
-
getSerializerForContentType
public Serializer getSerializerForContentType(String contentType)
- Specified by:
getSerializerForContentTypein interfaceKosContext
-
readApplicationConfig
public io.vertx.core.json.JsonObject readApplicationConfig()
- Specified by:
readApplicationConfigin interfaceKosContext
-
computeBlocking
public <T> io.vertx.core.Future<T> computeBlocking(KosContext.SupplierThatMightFail<T> supplier)
- Specified by:
computeBlockingin interfaceKosContext
-
runBlocking
public io.vertx.core.Future<Void> runBlocking(KosContext.RunnerThatMightFail runner)
- Specified by:
runBlockingin interfaceKosContext
-
-