Packageorg.springextensions.actionscript.ioc.factory
SVN browsingIFactoryObject.as
FisheyeIFactoryObject.as
Interfacepublic interface IFactoryObject
ImplementorsAbstractFactoryObject, MethodInvokingFactoryObject, RandomNumberFactoryObject

Interface to be implemented by objects that are factories for other objects. When this object is requested from the container, it will not be returned itself, but the object it creates will be returned.

If a reference to the IFactoryObject instance itself is desired then invoke the getObject() method with an '&' prefix in front of the object name.


Example
applicationContext.getObject('&myFactoryObject');

Factory objects are ideal for extending the core IoC container with custom initialization objects.



Documentation reference: customizing instantiation logic using the ifactoryobject interface


Public Properties
 PropertyDefined by
  isSingleton : Boolean
[read-only] Returns if this factory object is a singleton or not.
IFactoryObject
Public Methods
 MethodDefined by
  
Returns an instance of the object managed by this factory.
IFactoryObject
  
getObjectType():Class
Returns the type of the object this factory manages or null if the type is unknown.
IFactoryObject
Property detail
isSingletonproperty
isSingleton:Boolean  [read-only]

Returns if this factory object is a singleton or not. If it is a singleton, it will return a new instance of the object it creates on each getObject() call. Else, the same object will be returned.

Implementation
    public function get isSingleton():Boolean
Method detail
getObject()method
public function getObject():*

Returns an instance of the object managed by this factory.

Returns
*
getObjectType()method 
public function getObjectType():Class

Returns the type of the object this factory manages or null if the type is unknown.

Returns
Class