Packageorg.pranaframework.ioc.factory
Interfacepublic interface IFactoryObject
ImplementorsAbstractFactoryObject, 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. Factory objects are ideal for extending the core IoC container with custom initialization objects.



Public Properties
 PropertyDefined by
  isSingleton : Boolean
[read-only] Returns if this factory object is a singleton or not.
IFactoryObject
Public Methods
 MethodDefined by
  
IFactoryObject
  
getObjectType():Class
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
*
getObjectType()method 
public function getObjectType():Class

Returns
Class