AttractorEx.HandlerRegistry (attractor_phoenix v0.1.0)

Copy Markdown View Source

Resolves node types to executable handler modules.

The registry includes the built-in handlers required by the runtime and supports dynamic extension through register/2.

Summary

Functions

Returns whether a type string is known to the registry.

Registers a handler module for an explicit type string.

Resolves the effective handler module for a node.

Functions

handler_for(node)

Alias for resolve/1.

known_type?(type)

Returns whether a type string is known to the registry.

register(type_string, handler_module)

Registers a handler module for an explicit type string.

resolve(node)

Resolves the effective handler module for a node.