ColdBox Platform Version 2.6.4

coldbox.system.ioc
Class AbstractIOCAdapter

WEB-INF.cftags.component
        extended by coldbox.system.ioc.AbstractIOCAdapter

public class AbstractIOCAdapter
extends WEB-INF.cftags.component

The ColdBox base IOC factory adapter in usage by the ioc plugin


Constructor Summary
init(Controller controller, IOC IOCPlugin)
          Constructor
 
Method Summary
 boolean containsBean(string beanName)
          Check if the bean factory contains a bean
 void createFactory()
          Create the factory
 any getBean(string beanName)
          Get a Bean from the object factory
private IOC getIOCPlugin()
          Get IOCPlugin
 any getbeanFactory()
          Get the bean factory
private Controller getcontroller()
          Get the ColdBox controller
 any invokeFactoryMethod(string method, [struct args='[runtime expression]'])
          Invoke a factory method in the bean factory
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(Controller controller, IOC IOCPlugin)
Constructor

Parameters:
controller - The ColdBox controller
IOCPlugin - The IOC plugin object
Method Detail

containsBean

public boolean containsBean(string beanName)
Check if the bean factory contains a bean

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

createFactory

public void createFactory()
Create the factory


getBean

public any getBean(string beanName)
Get a Bean from the object factory

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

getIOCPlugin

private IOC getIOCPlugin()
Get IOCPlugin


getbeanFactory

public any getbeanFactory()
Get the bean factory


getcontroller

private Controller getcontroller()
Get the ColdBox controller


invokeFactoryMethod

public any invokeFactoryMethod(string method, [struct args='[runtime expression]'])
Invoke a factory method in the bean factory. If the factory returns a void/null, this method returns void or null

Parameters:
method - The method to invoke
args - The arguments to pass into the method

ColdBox Platform Version 2.6.4