z_module_dummy (zotonic_core v1.0.0-rc.17)

Dummy gen_server for modules without any gen_server code. We use this dummy gen_server so that we still can use a simple otp supervisor to oversee the running modules.

Summary

Functions

Convert process state when code is changed

Handle the next step in the module initialization.

Handling all non call/cast messages

Initiates the server.

Starts the server

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.

Functions

code_change(OldVsn, State, Extra)

-spec code_change(term(), term(), term()) -> {ok, term()}.

Convert process state when code is changed

handle_call(Message, From, State)

Trap unknown calls

handle_cast(Message, State)

-spec handle_cast(term(), term()) ->
                     {noreply, term()} |
                     {noreply, term(), timeout() | hibernate} |
                     {stop, term(), term()}.

Handle the next step in the module initialization.

handle_info(Info, State)

-spec handle_info(term(), term()) ->
                     {noreply, term()} |
                     {noreply, term(), timeout() | hibernate} |
                     {stop, term(), term()}.

Handling all non call/cast messages

init(Args)

-spec init(term()) -> {ok, term()} | {ok, term(), timeout() | hibernate} | ignore | {stop, term()}.

Initiates the server.

start_link(Args)

-spec start_link(list()) -> {ok, pid()} | ignore | {error, term()}.

Starts the server

terminate(Reason, State)

-spec terminate(term(), term()) -> ok.

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.