KVServiceManager

open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>

Multiplatform service manager.

open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceBinder<T, RequestHandler, WebsocketHandler> , KVServiceMgr<T>

Multiplatform service manager for Jooby.

Constructors

KVServiceManager
Link copied to clipboard
fun <T : Any> KVServiceManager(serviceClass: KClass<T>)

Types

Companion
Link copied to clipboard
object Companion

Functions

bind
Link copied to clipboard
inline fun <PAR1 : Any, PAR2 : Any> bind(noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, route: String?)
inline fun <RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String?)
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: HttpMethod, route: String?)
bindTabulatorRemote
Link copied to clipboard
inline fun <RET> bindTabulatorRemote(noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>, route: String?)
bindWebsocket
Link copied to clipboard
fun <REQ, RES> bindWebsocket(route: String?, function: suspend T.(ReceiveChannel<REQ>, SendChannel<RES>) -> Unit, requestSerializer: KSerializer<REQ>, responseSerializer: KSerializer<RES>)
createRequestHandler
Link copied to clipboard
open override fun <RET> createRequestHandler(method: HttpMethod, function: suspend T.(params: List<String?>) -> RET, serializer: KSerializer<RET>): RequestHandler
createWebsocketHandler
Link copied to clipboard
open override fun <REQ, RES> createWebsocketHandler(function: suspend T.(ReceiveChannel<REQ>, SendChannel<RES>) -> Unit, requestSerializer: KSerializer<REQ>, responseSerializer: KSerializer<RES>): WebsocketHandler
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
getCalls
Link copied to clipboard
js
open override fun getCalls(): Map<String, Pair<String, HttpMethod>>
Returns the map of defined paths.
open fun getCalls(): Map<String, Pair<String, HttpMethod>>
open fun getCalls(): Map<String, Pair<String, HttpMethod>>
hashCode
Link copied to clipboard
open fun hashCode(): Int
open fun hashCode(): Int
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
open fun toString(): String
open fun toString(): String

Properties

counter
Link copied to clipboard
js
var counter: Int = 0
deSerializer
Link copied to clipboard
val deSerializer: ObjectDeSerializer
routeMapRegistry
Link copied to clipboard
val routeMapRegistry: RouteMapRegistry<RequestHandler>
serviceClass
Link copied to clipboard
val serviceClass: KClass<T>
webSocketRequests
Link copied to clipboard
val webSocketRequests: MutableMap<String, WebsocketHandler>