class

Movie::ExtensionRegistry

Inherits Reference < Object

Registry for managing extensions within an ActorSystem.

Constructors

Instance methods

all

Returns all registered extensions.

Source
get(type : T.class) : T | Nil forall T

Returns an extension by type, or nil if not registered.

Source
get!(type : T.class) : T forall T

Returns an extension by type, raising if not found.

Source
get_or_register(type : T.class, extension : Extension) : T forall T

Registers an extension if missing and returns the registered instance. Uses the provided type to key the registry to avoid races.

Source
register(extension : Extension)

Registers an extension instance. The extension's class name is used as the key.

Source
registered?(type : T.class) : Bool forall T

Returns true if an extension of the given type is registered.

Source
stop_all

Stops all registered extensions.

Source