Behaviour.Reflection v0.1.0 Behaviour.Reflection View Source
Find all modules implementing a Behaviour.
Link to this section Summary
Functions
Find and load all modules implementing the given Behaviour.
Link to this section Functions
Find and load all modules implementing the given Behaviour.
Several methods to detect implementations can be applied:
:beam_file_introspection: filters all modules in.beamfiles of the Mix project implementingbehaviour:code_all_loaded: filters all modules returned by:code.all_loaded/0the implementingbehaviour
Unless otherwise specified with the optional impl_detection_methods argument,
both methods are applied when the BEAM is running in interactive mode (which is
the default). In embedded mode (which is used in releases), only the :code_all_loaded
method and should be sufficient since the boot script loads all modules upfront.