Skip to content

Core: Manager

Jake edited this page Jun 22, 2018 · 1 revision

The Leverage Manager

Leverage's manager is the foundation on which any application is built. All Leverage units are given to the manager in order to compose them.

Leverage General Architecture

Manager Interface

The manager's public interface is rather small. In most cases, you will only need to use its add() method.

new Manager(): manager

Returns a new instance of Manager.

manager.add(Unit): void

Add a Unit to the manager.
Unit can be any valid Leverage unit.

manager.addPlugin(Plugin): void

Add a Plugin to the manager.

manager.addService(Service): void

Add a Service to the manager.

manager.addComponent(Component): void

Add a Component to the manager.

manager.addMiddleware(Middleware): void

Add a Middleware to the manager.