BallastRouterFactory

class BallastRouterFactory(val root: String? = null, val useHash: Boolean = true, val notFoundHandler: (String) -> Any? = null) : RouterFactory(source)

A router factory for Ballast routing module.

Parameters

root

the root path of the application

useHash

whether to use hash based routing

notFoundHandler

a function called when no route matches

Constructors

Link copied to clipboard
constructor(root: String? = null, useHash: Boolean = true, notFoundHandler: (String) -> Any? = null)

Properties

Link copied to clipboard
val notFoundHandler: (String) -> Any? = null
Link copied to clipboard
val root: String? = null
Link copied to clipboard
val useHash: Boolean = true

Functions

Link copied to clipboard
open override fun getRouter(): KVRouter
Link copied to clipboard
open override fun initRouter()
Link copied to clipboard
open override fun shutdownRouter()