- Top
- Summary
- Constructors
- Class properties
- Instance properties
- Class methods
- Instance methods
- Event handlers
BeanFactory
| Kind of class: | public class |
|---|---|
| Package: | com.bourre.ioc.bean |
| Inherits from: | none |
| Implements: | |
| Classpath: | com.bourre.ioc.bean.BeanFactory |
| File last modified: | Monday, 24 November 2008, 11:36:55 |
Summary
Constructor
- BeanFactory (access:PrivateConstructorAccess)
Class methods
- getInstance : BeanFactory
- release : void
Instance methods
- getKeys : Array
- Returns an {VISDOC_CODE_BLOCK_13} view of the keys contained in this locator.
- getValues : Array
- Returns an {VISDOC_CODE_BLOCK_14} view of the values contained in this locator.
- clear : void
- locate (key:String) : Object
- Returns the ressource associated with the passed-in {VISDOC_CODE_BLOCK_9}.
- isRegistered (key:String) : Boolean
- Returns {VISDOC_CODE_BLOCK_3} is there is a ressource associated
- isBeanRegistered (bean:Object) : Boolean
- register (key:String, bean:Object) : Boolean
- unregister (key:String) : Boolean
- unregisterBean (bean:Object) : Boolean
- getKey (bean:Object) : String
- addListener (listener:BeanFactoryListener) : Boolean
- removeListener (listener:BeanFactoryListener) : Boolean
- addEventListener (type:String, listener:Object, rest) : Boolean
- removeEventListener (type:String, listener:Object) : Boolean
- toString : String
- add (d:Dictionary) : void
- Adds all ressources contained in the passed-in dictionnaryEvent handlers
- onRegisterBeanEVENT : String
- onUnregisterBeanEVENT : String
Constructor
BeanFactory
Class methods
getInstance
release
public static function release () : voidInstance methods
add
public function add (d:Dictionary) : voidAdds all ressources contained in the passed-in dictionnary#
into this locator instance. If there is keys used both in
the locator and in the dictionnary an exception is thrown.addEventListener
public function addEventListener (type:String, listener:Object, rest) : BooleanaddListener
clear
public function clear () : voidgetKey
public function getKey (bean:Object) : StringgetKeys
public function getKeys () : ArrayReturns an {VISDOC_CODE_BLOCK_13} view of the keys contained in this locator.#Returns:- an array view of the keys contained in this locator#
Specified by:getValues
public function getValues () : ArrayReturns an {VISDOC_CODE_BLOCK_14} view of the values contained in this locator.#Returns:- an array view of the values contained in this locator#
Specified by:isBeanRegistered
public function isBeanRegistered (bean:Object) : BooleanisRegistered
public function isRegistered (key:String) : BooleanReturns {VISDOC_CODE_BLOCK_3} is there is a ressource associated#
with the passed-in {VISDOC_CODE_BLOCK_4}. To avoid errors when
retreiving ressources from a locator you should systematically
use the {VISDOC_CODE_BLOCK_5} function to check if the
ressource you would access is already accessible before any
call to the {VISDOC_CODE_BLOCK_6} function.Returns:- {VISDOC_CODE_BLOCK_7} is there is a ressource associated#
with the passed-in {VISDOC_CODE_BLOCK_8}.
Specified by:locate
public function locate (key:String) : ObjectReturns the ressource associated with the passed-in {VISDOC_CODE_BLOCK_9}.#
If there is no ressource identified by the passed-in key, the
function will fail with an error. To avoid the throw of an exception
when attempting to access to a ressource, take care to check the
existence of the ressource before trying to access to it.register
public function register (key:String, bean:Object) : BooleanremoveEventListener
public function removeEventListener (type:String, listener:Object) : BooleanremoveListener
toString
public function toString () : Stringunregister
public function unregister (key:String) : BooleanunregisterBean
public function unregisterBean (bean:Object) : BooleanEvent handlers
onRegisterBeanEVENT
public static const onRegisterBeanEVENT:String = "onRegisterBean"(read)onUnregisterBeanEVENT
public static const onUnregisterBeanEVENT:String = "onUnregisterBean"(read) - isRegistered (key:String) : Boolean
- getValues : Array