BehaviorRegistry
class
- Kind
- class
- Source
- src/behaviors/BehaviorRegistry.js:13
Description
Registry mapping behavior ids to behavior constructors or factories.
Signature
Returns
Empty registry ready for built-in or custom behavior registration.
TypeBehaviorRegistryNotes
The registry is the public extension point behind
helios.registerBehavior(...); created behaviors still attach through
BehaviorManager, so persistence and cleanup flow remains consistent.
Utilities
Additional public helpers that do not belong to a narrower API area.
register(id, behavior) → {this}
Source: src/behaviors/BehaviorRegistry.js:18
Manages register for the current instance.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to register. | |||
behavior | Value passed to register. |
Returns
This instance.
Typethishas(id)
Source: src/behaviors/BehaviorRegistry.js:28
Returns the current has value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to has. |
create(id, options)
Source: src/behaviors/BehaviorRegistry.js:32
Configures or reads create.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to create. | |||
options | Object | Options object for this operation. |