AbilityRegistryImpl

In-memory AbilityRegistry backed by an insertion-ordered map.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun get(id: String): Ability?

Finds a registered ability by ID.

Link copied to clipboard
open override fun getAll(): Collection<Ability>

Returns a copy of the registered abilities.

Link copied to clipboard
open override fun isRegistered(id: String): Boolean

Checks whether an ID is registered.

Link copied to clipboard
open override fun register(ability: Ability)

Adds an ability and rejects blank or duplicate IDs.

Link copied to clipboard
open override fun unregister(id: String): Boolean

Removes an ability and reports whether it was present.