AppNameConstraint

sealed class AppNameConstraint

A constraint for retrieving modules related to some application in getKtorModulesByPriority.

Inheritors

Types

Link copied to clipboard

Get any module, regardless of their assigned name.

Link copied to clipboard
class App(val appName: String?) : AppNameConstraint

Constraint to retrieve modules with applications that have a specific name. Note that 'null' is a valid application name: it is the default application's name.

Functions

Link copied to clipboard
abstract fun acceptsModule(module: KtorModule): Boolean

Returns true if the provided module corresponds to this constraint.