Package | org.swizframework.core |
Class | public class BeanFactory |
Inheritance | BeanFactory ![]() |
Implements | IBeanFactory |
Property | Defined By | ||
---|---|---|---|
beans : Array [read-only]
BeanFactories will pull all beans from BeanProviders into a local cache. | BeanFactory | ||
parentBeanFactory : IBeanFactory | BeanFactory |
Property | Defined By | ||
---|---|---|---|
_beans : Array
Backing variable for beans getter/setter. | BeanFactory | ||
logger : SwizLogger | BeanFactory | ||
_parentBeanFactory : IBeanFactory | BeanFactory | ||
swiz : ISwiz | BeanFactory | ||
typeDescriptors : Dictionary | BeanFactory |
Method | Defined By | ||
---|---|---|---|
Constructor
| BeanFactory | ||
constructBean(obj:*, name:String, domain:ApplicationDomain):Bean [static] | BeanFactory | ||
getBeanByName(name:String):Bean | BeanFactory | ||
getBeanByType(beanType:Class):Bean | BeanFactory | ||
Called by Swiz
| BeanFactory | ||
Initialze Bean
| BeanFactory | ||
setUpBeans():void
Initializes all beans in the beans cache. | BeanFactory | ||
tearDownBean(bean:Bean):void
Remove Bean
| BeanFactory | ||
tearDownBeans():void | BeanFactory |
Method | Defined By | ||
---|---|---|---|
addBeanProviders(beanProviders:Array):void
Add Bean Providers
| BeanFactory | ||
handleBeanEvent(event:BeanEvent):void | 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
Backing variable for beans
getter/setter.
_parentBeanFactory | property |
protected var _parentBeanFactory:IBeanFactory
beans | property |
beans:Array
[read-only] BeanFactories will pull all beans from BeanProviders into a local cache.
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
typeDescriptors | property |
protected var typeDescriptors:Dictionary
BeanFactory | () | Constructor |
public function BeanFactory()
Constructor
addBeanProviders | () | method |
protected function addBeanProviders(beanProviders:Array):void
Add Bean Providers
Parameters
beanProviders:Array |
constructBean | () | method |
public static function constructBean(obj:*, name:String, domain:ApplicationDomain):Bean
Parameters
obj:* | |
name:String | |
domain:ApplicationDomain |
Bean |
getBeanByName | () | method |
getBeanByType | () | method |
handleBeanEvent | () | method |
init | () | method |
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 |
setUpBean | () | method |
setUpBeans | () | method |
public function setUpBeans():void
Initializes all beans in the beans cache.
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 |
tearDownBean | () | method |
tearDownBeans | () | method |
public function tearDownBeans():void
tearDownEventHandler | () | method |
protected function tearDownEventHandler(event:Event):void
Remove Event Handler
Parameters
event:Event |
ignoredClasses | Constant |
protected const ignoredClasses:RegExp