| Package | org.springextensions.actionscript.ioc.factory |
| SVN browsing | IFactoryObject.as |
| Fisheye | IFactoryObject.as |
| Interface | public interface IFactoryObject |
| Implementors | AbstractFactoryObject, 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.
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
| Property | Defined by | ||
|---|---|---|---|
| isSingleton : Boolean [read-only]
Returns if this factory object is a singleton or not.
| IFactoryObject | ||
| Method | Defined by | ||
|---|---|---|---|
|
getObject():*
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 | ||
| isSingleton | property |
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
| getObject | () | method |
public function getObject():*Returns an instance of the object managed by this factory.
Returns* |
| getObjectType | () | method |
public function getObjectType():ClassReturns the type of the object this factory manages or null if the type is unknown.
ReturnsClass |