cbioc

Class Factory

lucee.Component
    extended by cbioc.Factory

An Inversion Of Control plugin that interfaces with major ColdFusion IoC/DI frameworks

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


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


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


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


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


    • access = public
    • returntype = any
    • inject = logbox:logger:{this}
    true false
    any parentFactory


    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(struct settings, any coldbox)
          Constructor.
    Method Summary
    private any buildAdapter(any framework, any definitionFile)
         Build an IoC framework adapter and returns it.
    void configure()
         Configure or Re-Configure the IoC Plugin.
    any containsBean(any beanName)
         Check if the bean factory contains a bean.
    string getAdapter()
    string getAutoreload()
    any getBean(any beanName)
         Get a Bean from the loaded object factory.
    string getDefinitionFile()
    string getFramework()
    any getIoCFactory()
         Returns the IoC Factory in use.
    string getLog()
    string getParentFactory()
    void reloadDefinitionFile()
         Reloads the IoC factory.
    any setAdapter(any adapter)
    any setAutoreload(any autoreload)
    any setDefinitionFile(any definitionFile)
    any setFramework(any framework)
    any setLog(any log)
    any setParentFactory(any parentFactory)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(struct settings, any coldbox)

    Constructor

    Parameters:
    settings - The configuration settings struct
    coldbox - The ColdBox controller

    Property Detail

    adapter

    property any adapter

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

    autoreload

    property any autoreload

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

    definitionFile

    property any definitionFile

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

    framework

    property any framework

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

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:{this}
    serializable - true

    parentFactory

    property any parentFactory

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

    Method Detail

    buildAdapter

    private any buildAdapter(any framework, any definitionFile)

    Build an IoC framework adapter and returns it

    Parameters:
    framework - The framework adapter to build
    definitionFile - The framework definition file to load

    configure

    public void configure()

    Configure or Re-Configure the IoC Plugin. Loads the chosen IoC Factory and configures it for usage


    containsBean

    public any containsBean(any beanName)

    Check if the bean factory contains a bean

    Parameters:
    beanName - The bean name to retrieve from the object factory

    getAdapter

    public string getAdapter()


    getAutoreload

    public string getAutoreload()


    getBean

    public any getBean(any beanName)

    Get a Bean from the loaded object factory

    Parameters:
    beanName - The bean name to retrieve from the object factory

    getDefinitionFile

    public string getDefinitionFile()


    getFramework

    public string getFramework()


    getIoCFactory

    public any getIoCFactory()

    Returns the IoC Factory in use


    getLog

    public string getLog()


    getParentFactory

    public string getParentFactory()


    reloadDefinitionFile

    public void reloadDefinitionFile()

    Reloads the IoC factory. Basically calls configure again. DEPRECATED


    setAdapter

    public any setAdapter(any adapter)

    Parameters:
    adapter

    setAutoreload

    public any setAutoreload(any autoreload)

    Parameters:
    autoreload

    setDefinitionFile

    public any setDefinitionFile(any definitionFile)

    Parameters:
    definitionFile

    setFramework

    public any setFramework(any framework)

    Parameters:
    framework

    setLog

    public any setLog(any log)

    Parameters:
    log

    setParentFactory

    public any setParentFactory(any parentFactory)

    Parameters:
    parentFactory