class Marten::Apps::Registry


The applications registry.

The applications registry is responsible for managing all the application config classes of a given project.

Defined in:



Instance Method Summary

Constructor Detail

def #

[View source]

Instance Method Detail

def app_configs #

Returns an array of the available app configs.

[View source]
def get(label : String) #

Returns the app config instance for the passed app label.

Raises Marten::Apps::Errors::AppNotFound if the app config cannot be found.

[View source]
def get_containing(klass) #

Returns the application config object contaning the passed class.

[View source]
def insert_main_app #

[View source]
def populate(installed_apps : Array(Config.class)) : Nil #

Populate the app config registry from the list of the project installed apps.

[View source]
def register_model(model : DB::Model.class) #

Registers a specific model class to the registry of app configs.

This model will be associated later on to the associated app config once all the app configs of the current project are populated and initialized.

[View source]
def setup #

Triggers app config setups.

[View source]