coldbox.system.web.services

Class LoaderService

railo-context.Component
        extended by coldbox.system.web.services.BaseService
            extended by coldbox.system.web.services.LoaderService
Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com This service loads and configures a ColdBox application for operation

    Constructor Summary
    init(any controller)
          Constructor.
    Method Summary
    any createAppLoader([any overrideConfigFile=''])
         Creates the application loader.
    LoaderService createCacheBox()
         Create the application's CacheBox instance.
    LoaderService createControllerDecorator()
         Create the controller decorator.
    any createDefaultLogBox()
         Create a running LogBox instance configured using ColdBox's default config.
    LoaderService createWireBox()
         Create WireBox DI Framework with configuration settings.
    LoaderService loadApplication([any overrideConfigFile=''], [any overrideAppMapping=''])
         Load a ColdBox application.
    LoaderService processShutdown()
         Process the shutdown of the application.
     
    Methods inherited from class coldbox.system.web.services.BaseService
    getController, onConfigurationLoad, onShutdown, setController
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init(any controller)

    Constructor

    Parameters:
    controller

    Method Detail

    createAppLoader

    public any createAppLoader([any overrideConfigFile=''])

    Creates the application loader

    Parameters:
    overrideConfigFile - Only used for unit testing or reparsing of a specific coldbox config file

    createCacheBox

    public LoaderService createCacheBox()

    Create the application's CacheBox instance


    createControllerDecorator

    public LoaderService createControllerDecorator()

    Create the controller decorator


    createDefaultLogBox

    public any createDefaultLogBox()

    Create a running LogBox instance configured using ColdBox's default config

    Returns:
    coldbox.system.logging.LogBox

    createWireBox

    public LoaderService createWireBox()

    Create WireBox DI Framework with configuration settings.


    loadApplication

    public LoaderService loadApplication([any overrideConfigFile=''], [any overrideAppMapping=''])

    Load a ColdBox application

    Parameters:
    overrideConfigFile - The configuration file to load the application with
    overrideAppMapping - The direct location of the application in the web server

    processShutdown

    public LoaderService processShutdown()

    Process the shutdown of the application