ValidateThis API Documentation

ValidateThis.util
Class BeanConfig

WEB-INF.cftags.component
        extended by ValidateThis.util.BaseConfigObject
            extended by ValidateThis.util.BeanConfig

public class BeanConfig
extends BaseConfigObject

A LightWire configuration bean.


Constructor Summary
init(any ValidateThisConfig)
          I initialize the config bean
 
Method Summary
 void addBean(string FullClassPath, [string BeanName=''], any Singleton, [string InitMethod=''])
          I extend the base addBean Method injecting strings from the VTConfig struct into the constructor
 
Methods inherited from class ValidateThis.util.BaseConfigObject
addBeanFromFactory, addConstructorDependency, addConstructorProperty, addMixinDependency, addMixinProperty, addSetterDependency, addSetterProperty, addSingleton, addSingletonFromFactory, addTransient, addTransientFromFactory, dump, getConfigStruct, getLazyLoad, parseXMLConfigFile, setLazyLoad, translateBean, translateBeanChildren
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any ValidateThisConfig)
I initialize the config bean.

Parameters:
ValidateThisConfig
Method Detail

addBean

public void addBean(string FullClassPath, [string BeanName=''], any Singleton, [string InitMethod=''])
I extend the base addBean Method injecting strings from the VTConfig struct into the constructor.

Overrides:
addBean in class BaseConfigObject
Parameters:
FullClassPath - The full class path to the bean including its name. E.g. for com.UserService.cfc it would be com.UserService.
BeanName - An optional name to be able to use to refer to this bean. If you don't provide this, the name of the bean will be used as a default. E.g. for com.UserService, it'll be named UserService unless you put something else here. If you put UserS, it'd be available as UserS, but NOT as UserService.
Singleton - Whether the bean is a Singleton (1) or Transient(0).
InitMethod - A default custom initialization method for LightWire to call on the bean after constructing it fully (including setter and mixin injection) but before returning it.

ValidateThis API Documentation