Injectx.Context (injectx v0.1.4) View Source

Link to this section Summary

Link to this section Types

Specs

behavior() :: module()

Specs

implementation() :: module()

Specs

implementations() :: list()

Specs

t() :: %Injectx.Context{bindings: list(), name: atom() | ApplicationContext}

Link to this section Functions

Link to this function

dispatching(behavior, function_name, args, list)

View Source

Specs

dispatching(module(), atom(), list(), [{:async, boolean()}]) ::
  [{:ok, module(), any()}] | [{:error, module(), any()}]
Link to this function

dispatching(context, behavior, function_name, args, list)

View Source

Specs

dispatching(atom(), module(), atom(), list(), [{:async, boolean()}]) ::
  [{:ok, module(), any()}] | [{:error, module(), any()}]

Specs

from(t()) :: :ok

Specs

from_config() :: :ok | {:error, :not_found}

Specs

inject(behavior()) :: implementation()

Specs

inject(atom(), behavior()) :: implementation()

Specs

inject_all(behavior()) :: implementations()
Link to this function

inject_all(name, behavior)

View Source

Specs

inject_all(atom(), behavior()) :: implementations()