wirestate-core
Bind
| Name | Description |
|---|---|
| BindEntryOptions | Represents options for bindEntry. |
| BindServiceOptions | Represents options for bindService. |
| InjectableDescriptor | Represents one container entry. |
| InjectableEntries | Represents entries accepted by Wirestate registration APIs. |
| bindConstant | Binds a fixed value to a token. |
| bindDynamicValue | Binds a factory-backed value to a token. |
| bindEntry | Binds a class or descriptor into a container. |
| bindService | Binds a service class as a Wirestate singleton. |
| getEntryToken | Returns the token for an entry. |
Commands
| Name | Description |
|---|---|
| CommandStatus | Represents the current state of a command execution. |
| CommandBus | Dispatches named commands to one active handler. |
| CommandDescriptor | Represents the handle for a running command. |
| CommandHandler | Represents the function that handles a command. |
| CommandType | Represents token used to dispatch and handle commands. |
| CommandUnregister | Represents the function returned by command registration. |
| OnCommand | Marks a service method as a command handler. |
Container
| Name | Description |
|---|---|
| WireScope | Per-service handle for container work. |
| CreateContainerOptions | Represents options for createContainer. |
| ContainerConfig | Represents reusable createContainer config. |
| createContainer | Creates a Wirestate container. |
| getContainerEntries | Returns entries Wirestate bound into a container. |
| validateContainerConfig | Checks a container config before creating a container. |
Error
| Class | Description |
|---|---|
| WirestateError | Error type thrown by Wirestate APIs. |
Events
| Name | Description |
|---|---|
| EventBus | Broadcasts events to every subscriber in one container. |
| Event | Represents event payload delivered to handlers. |
| EventHandler | Represents the function that handles an event. |
| EventType | Represents token used to emit and filter events. |
| EventUnsubscriber | Represents the function that removes an event subscription. |
| OnEvent | Marks a service method as an event handler. |
Queries
| Name | Description |
|---|---|
| QueryBus | Dispatches named queries to one active handler. |
| QueryHandler | Represents the function that handles a query. |
| QueryType | Represents token used to dispatch and handle queries. |
| QueryUnregister | Represents the function returned by query registration. |
| OnQuery | Marks a service method as a query handler. |
Seeds
| Name | Description |
|---|---|
| SeedEntries | Represents a collection of targeted seed entries. |
| SeedEntry | Represents a single targeted seed entry. |
| SeedKey | Represents a lookup key for targeted seed values. |
| SeedsMap | Represents a map of targeted seed values. |
| SEED | Unique symbol used as a token for the container-scoped shared seed object. |
| SEEDS | Unique symbol used as a token for the container-scoped seeds map. |
| applySeeds | Adds targeted seed values to a container. |
| applySharedSeed | Replaces the shared seed object. |
| unapplySeeds | Removes targeted seed values from a container. |
Service
| Name | Description |
|---|---|
| ProvisionLifecycle | Represents provider lifecycle state keyed by container. |
| deprovisionContainer | Deprovisions a container for a framework provider. |
| deprovisionServices | Calls deprovision hooks for provisioned services. |
| OnActivated | Runs a service method after container activation. |
| OnDeactivation | Runs a service method during container deactivation. |
| OnDeprovision | Runs before a framework provider stops exposing the container. |
| OnProvision | Runs when a framework provider exposes the container. |
| provisionContainer | Provisions a container for a framework provider. |
| provisionServices | Resolves provider lifecycle participants and calls provision hooks. |
Type Aliases
| Type Alias | Description |
|---|---|
| ContainerActivation | Services to resolve right after binding. |
External-inversify
External-inversify-binding
BindingType
Renames and re-exports bindingTypeValues
ScopeBindingType
Renames and re-exports bindingScopeValues