User Tools

Site Tools


component-anatomy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
component-anatomy [2019/01/09 16:08]
barryfp [Semantic flavours]
component-anatomy [2019/01/09 16:09] (current)
barryfp [The Service interface]
Line 276: Line 276:
 The ''​Service''​ interface is a special one which implies that a component wishes to be "​started"​ and "​stopped"​ when it joins and leaves the system. If a component provides this interface, the ''​Service:​start()''​ function will be called before anything else, and the ''​Service:​stop()''​ function will be called just before the component is unloaded from memory. The ''​Service''​ interface is a special one which implies that a component wishes to be "​started"​ and "​stopped"​ when it joins and leaves the system. If a component provides this interface, the ''​Service:​start()''​ function will be called before anything else, and the ''​Service:​stop()''​ function will be called just before the component is unloaded from memory.
  
-These two functions can be used to initialise and destroy parts of the component'​s state, such as thread pools or native libraries.+These two functions can be used to initialise and destroy parts of the component'​s ​static ​state.
component-anatomy.txt ยท Last modified: 2019/01/09 16:09 by barryfp