[erlang-questions] start/stop applications without a callback module
Xavier Noria
fxn@REDACTED
Mon Jan 1 21:55:13 CET 2018
Awesome, thanks Loïc!
On Mon, 1 Jan 2018 at 20:58, Loïc Hoguin <essen@REDACTED> wrote:
> On 01/01/2018 08:43 PM, Xavier Noria wrote:
> > Trying to get the vocabulary right for OTP applications without a
> > callback module.
> >
> > Does the application controller spawn an application master process for
> > applications without callback modules? If yes, with what purpose? Do you
> > still call that "starting" the application even though there is no
> > `start/2` callback to invoke?
>
> All applications can be started.
>
> > Are applications without callback modules also "stopped" in some sense?
> > I mean, do you use the verb "stop" for them even though there is no
> > `stop/1` callback to invoke? And if yes, what does "stopping" do?
>
> All applications can also be stopped.
>
> For library applications (those without a callback module) it doesn't do
> a whole lot, just registers the application as being started (or not)
> and triggers some events for SASL and other.
>
> > Is there an official or common term to refer to "application without a
> > callback module", and "application with a callback module"?
>
> Library application and application, I don't think the latter has a
> specific name.
>
> All details are in this chapter:
> http://erlang.org/doc/design_principles/applications.html
>
> --
> Loïc Hoguin
> https://ninenines.eu
>
--
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180101/0e32435c/attachment.htm>
More information about the erlang-questions
mailing list