coldbox.system.ioc.dsl

Class ColdBoxDSL

lucee.Component
    extended by coldbox.system.ioc.dsl.ColdBoxDSL
All Implemented Interfaces:
IDSLBuilder

The DSL builder for all ColdBox related stuff

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any injector)
          Configure the DSL for operation and returns itself.
    Method Summary
    private any getColdboxDSL(any definition, [any targetObject])
         Get dependencies using the coldbox dependency DSL.
    private any getDatasource([any alias])
         I will return to you a datasourceBean according to the alias of the datasource you wish to get from the configstruct.
    private any getOCMDSL(any definition, [any targetObject])
         Get OCM dependencies.
    any process(any definition, [any targetObject])
         Process an incoming DSL definition and produce an object with it.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any injector)

    Configure the DSL for operation and returns itself

    Parameters:
    injector - The linked WireBox injector

    Method Detail

    getColdboxDSL

    private any getColdboxDSL(any definition, [any targetObject])

    Get dependencies using the coldbox dependency DSL

    Parameters:
    definition - The dependency definition structure
    targetObject - The target object we are building the DSL dependency for. If empty, means we are just requesting building

    getDatasource

    private any getDatasource([any alias])

    I will return to you a datasourceBean according to the alias of the datasource you wish to get from the configstruct

    Parameters:
    alias - The alias of the datasource to get from the configstruct (alias property in the config file)

    getOCMDSL

    private any getOCMDSL(any definition, [any targetObject])

    Get OCM dependencies

    Parameters:
    definition - The dependency definition structure
    targetObject - The target object we are building the DSL dependency for. If empty, means we are just requesting building

    process

    public any process(any definition, [any targetObject])

    Process an incoming DSL definition and produce an object with it.

    Specified by:
    process in interface IDSLBuilder
    Parameters:
    definition - The injection dsl definition structure to process. Keys: name, dsl
    targetObject - The target object we are building the DSL dependency for. If empty, means we are just requesting building