Package | org.swizframework.core |
Class | public class BeanFactory |
Inheritance | BeanFactory ![]() |
Implements | IBeanFactory |
Property | Defined By | ||
---|---|---|---|
beans : Array [read-only] | BeanFactory | ||
parentBeanFactory : IBeanFactory | BeanFactory |
Property | Defined By | ||
---|---|---|---|
_beans : Array | BeanFactory | ||
logger : SwizLogger | BeanFactory | ||
_parentBeanFactory : IBeanFactory | BeanFactory | ||
swiz : ISwiz | BeanFactory |
Method | Defined By | ||
---|---|---|---|
Constructor
| BeanFactory | ||
BeanFactory | |||
addBeanProvider(beanProvider:IBeanProvider, autoSetUpBeans:Boolean = true):void | BeanFactory | ||
constructBean(obj:*, name:String, domain:ApplicationDomain):Bean [static] | BeanFactory | ||
createBeanFromSource(source:Object, beanName:String = null):Bean | BeanFactory | ||
getBeanByName(name:String):Bean | BeanFactory | ||
getBeanByType(beanType:Class):Bean | BeanFactory | ||
getBeanForSource(source:Object):Bean | BeanFactory | ||
removeBean(bean:Bean):void | BeanFactory | ||
removeBeanProvider(beanProvider:IBeanProvider):void | BeanFactory | ||
BeanFactory | |||
Initialze Bean
| BeanFactory | ||
tearDown():void | BeanFactory | ||
tearDownBean(bean:Bean):void
Tear down the specified Bean, or any bean with the same source, and remove it from the cache. | BeanFactory |
Method | Defined By | ||
---|---|---|---|
handleBeanEvent(event:BeanEvent):void
Handle bean set up and tear down events. | BeanFactory | ||
isPotentialInjectionTarget(instance:Object):Boolean
Evaluate whether Swiz is configured such that the specified class is a potential injection target. | BeanFactory | ||
setUpEventHandler(event:Event):void
Injection Event Handler
| BeanFactory | ||
setUpEventHandlerSysMgr(event:Event):void
Injection Event Handler defined on SysMgr
| BeanFactory | ||
tearDownEventHandler(event:Event):void
Remove Event Handler
| BeanFactory |
Constant | Defined By | ||
---|---|---|---|
ignoredClasses : RegExp | BeanFactory |
_beans | property |
protected var _beans:Array
_parentBeanFactory | property |
protected var _parentBeanFactory:IBeanFactory
beans | property |
beans:Array
[read-only] public function get beans():Array
logger | property |
protected var logger:SwizLogger
parentBeanFactory | property |
parentBeanFactory:IBeanFactory
public function get parentBeanFactory():IBeanFactory
public function set parentBeanFactory(value:IBeanFactory):void
swiz | property |
protected var swiz:ISwiz
BeanFactory | () | Constructor |
public function BeanFactory()
Constructor
addBean | () | method |
public function addBean(bean:Bean, autoSetUpBean:Boolean = true):Bean
Parameters
bean:Bean | |
autoSetUpBean:Boolean (default = true )
|
Bean |
addBeanProvider | () | method |
public function addBeanProvider(beanProvider:IBeanProvider, autoSetUpBeans:Boolean = true):void
Parameters
beanProvider:IBeanProvider | |
autoSetUpBeans:Boolean (default = true )
|
constructBean | () | method |
public static function constructBean(obj:*, name:String, domain:ApplicationDomain):Bean
Parameters
obj:* | |
name:String | |
domain:ApplicationDomain |
Bean |
createBeanFromSource | () | method |
public function createBeanFromSource(source:Object, beanName:String = null):Bean
Parameters
source:Object | |
beanName:String (default = null )
|
Bean |
getBeanByName | () | method |
getBeanByType | () | method |
getBeanForSource | () | method |
handleBeanEvent | () | method |
protected function handleBeanEvent(event:BeanEvent):void
Handle bean set up and tear down events.
Parameters
event:BeanEvent |
isPotentialInjectionTarget | () | method |
protected function isPotentialInjectionTarget(instance:Object):Boolean
Evaluate whether Swiz is configured such that the specified class is a potential injection target.
Parameters
instance:Object |
Boolean |
removeBean | () | method |
removeBeanProvider | () | method |
public function removeBeanProvider(beanProvider:IBeanProvider):void
Parameters
beanProvider:IBeanProvider |
setUp | () | method |
setUpBean | () | method |
setUpEventHandler | () | method |
protected function setUpEventHandler(event:Event):void
Injection Event Handler
Parameters
event:Event |
setUpEventHandlerSysMgr | () | method |
protected function setUpEventHandlerSysMgr(event:Event):void
Injection Event Handler defined on SysMgr
Parameters
event:Event |
tearDown | () | method |
public function tearDown():void
tearDownBean | () | method |
public function tearDownBean(bean:Bean):void
Tear down the specified Bean, or any bean with the same source, and remove it from the cache.
Parameters
bean:Bean |
tearDownEventHandler | () | method |
protected function tearDownEventHandler(event:Event):void
Remove Event Handler
Parameters
event:Event |
ignoredClasses | Constant |
protected const ignoredClasses:RegExp