coldbox.system.ioc.adapters

Class ColdSpring2Adapter

WEB-INF.cftags.component
        extended by coldbox.system.ioc.AbstractIOCAdapter
            extended by coldbox.system.ioc.adapters.ColdSpring2Adapter
Class Attributes:
  • output : false
  •  

    The ColdBox ColdSpring2 IOC factory adapter

    Constructor Summary
    init([string definitionFile=''], [struct properties='[runtime expression]'], [any coldbox=''])
          Constructor.
    Method Summary
    boolean containsBean(string beanName)
         Check if the bean factory contains a bean.
    void createFactory()
         Create the ColdSpring Factory.
    any getBean(string beanName)
         Get a Bean from the object factory.
    any getParentFactory()
         Get the parent factory.
    void setParentFactory(any parent)
         Set a parent factory on the adapted factory.
     
    Methods inherited from class coldbox.system.ioc.AbstractIOCAdapter
    getColdBox, getDefinitionFile, getFactory, getProperties, getUtil, invokeFactoryMethod
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init([string definitionFile=''], [struct properties='[runtime expression]'], [any coldbox=''])

    Constructor

    Parameters:
    definitionFile - The definition file to load a factory with
    properties - Properties to pass to the factory to create
    coldbox - A coldbox application that this instance of logbox can be linked to, not used if not using within a ColdBox Application.

    Method Detail

    containsBean

    public boolean containsBean(string beanName)

    Check if the bean factory contains a bean

    Overrides:
    containsBean in class AbstractIOCAdapter
    Parameters:
    beanName - The bean name to retrieve from the object factory

    createFactory

    public void createFactory()

    Create the ColdSpring Factory

    Overrides:
    createFactory in class AbstractIOCAdapter

    getBean

    public any getBean(string beanName)

    Get a Bean from the object factory

    Overrides:
    getBean in class AbstractIOCAdapter
    Parameters:
    beanName - The bean name to retrieve from the object factory

    getParentFactory

    public any getParentFactory()

    Get the parent factory

    Overrides:
    getParentFactory in class AbstractIOCAdapter

    setParentFactory

    public void setParentFactory(any parent)

    Set a parent factory on the adapted factory

    Overrides:
    setParentFactory in class AbstractIOCAdapter
    Parameters:
    parent - The parent factory to add