Options
All
  • Public
  • Public/Protected
  • All
Menu

Application unit that loads the various route files from app/http/routes and pre-compiles the route handlers.

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly bus

Protected compiledRoutes

compiledRoutes: Collection<Route> = ...

Protected Readonly config

config: Config

Protected Readonly logging

logging: Logging

status

status: UnitStatus = ...

The current status of the unit.

Accessors

Private appClassApplication

path

Methods

Protected app

Protected container

down

  • down(): void | Promise<void>
  • This method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.

    IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.

    Returns void | Promise<void>

getAppUrl

getAssetBase

getAssetPath

  • Resolve a UniversalPath to a file served as an asset.

    example
    this.getAssetPath('images', '123.jpg').toRemote  // => http://localhost:8000/assets/images/123.jpg
    

    Parameters

    • Rest ...parts: string[]

    Returns UniversalPath

getBoundMethod

  • getBoundMethod(methodName: string): (...args: any[]) => any
  • Get the method with the given name from this class, bound to this class.

    Parameters

    • methodName: string

    Returns (...args: any[]) => any

    function

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

getByName

getCompiled

getNamedPath

getVendorBase

getVendorPath

  • getVendorPath(namespace: string, ...parts: string[]): UniversalPath

hasNamedRoute

  • hasNamedRoute(name: string): boolean

Protected make

  • make<T>(target: any, ...parameters: any[]): T
  • Call the make() method on the global container.

    Type parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T

match

recompile

  • recompile(): Promise<void>

Protected registerBuiltIns

  • registerBuiltIns(): Promise<void>

registerRoutes

  • registerRoutes(callback: () => Awaitable<void>): Promise<void>

registerVendorAssets

  • registerVendorAssets(packageName: string, basePath: UniversalPath): Promise<void>
  • Register an asset directory for the given package. This creates a static server route for the package with the configured vendor prefix.

    Parameters

    Returns Promise<void>

up

  • up(): Promise<void>
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.