Movie::ExtensionRegistry
Registry for managing extensions within an ActorSystem.
Constructors
new
SourceInstance methods
get(type : T.class) : T | Nil forall T
Returns an extension by type, or nil if not registered.
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.
register(extension : Extension)
Registers an extension instance. The extension's class name is used as the key.
Returns true if an extension of the given type is registered.