cbt

Class Engine

lucee.Component
    extended by cbt.Engine

Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This Engine CFC interacts with the current template processor: Pebble

Class Attributes:
  • threadsafe
  •  
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any controller


    • access = public
    • returntype = any
    • inject = coldbox
    true false
    any engine
          The internal engine used for the markup builder, in our case this points to a Pebble Engine Builder.

    • access = public
    • returntype = any
    true false
    any javaLoader


    • access = public
    • returntype = any
    • inject = loader@cbjavaloader
    true false
    any moduleSettings


    • access = public
    • returntype = any
    • inject = coldbox:modulesettings:cbt
    true false
    any requestService


    • access = public
    • returntype = any
    • inject = coldbox:requestService
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    any discoverTemplate(any template, any event)
         Discover a template from the ColdBox Eco-System.
    string getController()
    string getEngine()
    string getJavaLoader()
    string getModuleSettings()
    string getRequestService()
    any onDIComplete()
    string render([string template=''], [struct context='[runtime expression]'])
         Render out a template using the templating language.
    any setController(any controller)
    any setEngine(any engine)
    any setJavaLoader(any javaLoader)
    any setModuleSettings(any moduleSettings)
    any setRequestService(any requestService)
    private any toJava([any obj])
         Convert CFML to java types.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    controller

    property any controller

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox
    serializable - true

    engine

    property any engine

    The internal engine used for the markup builder, in our case this points to a Pebble Engine Builder.

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    javaLoader

    property any javaLoader

    Attributes:
    access - public
    required - false
    returntype - any
    inject - loader@cbjavaloader
    serializable - true

    moduleSettings

    property any moduleSettings

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox:modulesettings:cbt
    serializable - true

    requestService

    property any requestService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox:requestService
    serializable - true

    Method Detail

    discoverTemplate

    public any discoverTemplate(any template, any event)

    Discover a template from the ColdBox Eco-System

    Parameters:
    template
    event

    getController

    public string getController()


    getEngine

    public string getEngine()


    getJavaLoader

    public string getJavaLoader()


    getModuleSettings

    public string getModuleSettings()


    getRequestService

    public string getRequestService()


    onDIComplete

    public any onDIComplete()


    render

    public string render([string template=''], [struct context='[runtime expression]'])

    Render out a template using the templating language

    Parameters:
    template - The template to render. By convention we will look in the views convention of the current application or running module.
    context - A structure of data to bind the rendering with, so you can access it within the `{{ }}` or `{{{ }}}` notations.

    setController

    public any setController(any controller)

    Parameters:
    controller

    setEngine

    public any setEngine(any engine)

    Parameters:
    engine

    setJavaLoader

    public any setJavaLoader(any javaLoader)

    Parameters:
    javaLoader

    setModuleSettings

    public any setModuleSettings(any moduleSettings)

    Parameters:
    moduleSettings

    setRequestService

    public any setRequestService(any requestService)

    Parameters:
    requestService

    toJava

    private any toJava([any obj])

    Convert CFML to java types

    Parameters:
    obj - Target objects for conversion