Class Xyster_Container_Injection_Iterative

Description

This injector goes over a list of items

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • abstract:
  • license: New BSD License

Located in /Container/Injection/Iterative.php (line 28)

Xyster_Container_Adapter_Abstract
   |
   --Xyster_Container_Injection_Abstract
      |
      --Xyster_Container_Injection_Iterative
Direct descendents
Class Description
Xyster_Container_Injection_Setter Instantiates components using empty constructors and setter injection
Variable Summary
Xyster_Collection_List $_injectionMembers
Method Summary
object the getInstance (Xyster_Container_Interface $container)
void verify (Xyster_Container_Interface $container)
object _getOrMakeInstance (Xyster_Container_Interface $container,  $class, Xyster_Container_Monitor $monitor)
void _injectIntoMember ( $member, object $componentInstance, mixed $toInject)
boolean _isInjectorMethod ( $method)
Variables
Xyster_Collection_List $_injectionMembers (line 33)
  • access: protected
array $_injectionTypes = array() (line 38)
  • access: protected

Inherited Variables

Inherited from Xyster_Container_Injection_Abstract

Xyster_Container_Injection_Abstract::$_parameters
Methods
getInstance (line 48)

Retrieve the component instance

  • return: component instance.
  • throws: Exception if the component has dependencies which could not be resolved, or instantiation of the component lead to an ambigous situation within the container.
  • throws: Exception if the component could not be instantiated.
  • access: public
object the getInstance (Xyster_Container_Interface $container)
verify (line 91)

Verify that all dependencies for this adapter can be satisifed

  • throws: Exception if one or more dependencies cannot be resolved
  • access: public
void verify (Xyster_Container_Interface $container)
_getMatchingParameterListForSetters (line 107)

Gets the parameter list

  • return: an array of Xyster_Container_Parameter objects
  • access: protected
array _getMatchingParameterListForSetters (Xyster_Container_Interface $container)
_getOrMakeInstance (line 167)

Gets an instance of the object

  • access: protected
object _getOrMakeInstance (Xyster_Container_Interface $container,  $class, Xyster_Container_Monitor $monitor)
_initializeInjectionMembersAndTypeLists (line 188)

Traverses the type and caches all injection methods and their parameters

  • access: protected
void _initializeInjectionMembersAndTypeLists ()
_injectIntoMember (line 216)

Injects a value into a member

  • access: protected
void _injectIntoMember ( $member, object $componentInstance, mixed $toInject)
  • ReflectionMethod $member
  • object $componentInstance
  • mixed $toInject
_isInjectorMethod (line 238)

Gets whether the method passed in should be used for injection

  • abstract:
  • access: protected
boolean _isInjectorMethod ( $method)
  • ReflectionMethod $method

Redefined in descendants as:
_makeParameterNameImpl (line 227)

Returns a NameBinding for a method

  • access: protected
Xyster_Container_NameBinding _makeParameterNameImpl ( $member)
  • ReflectionMethod $member

Inherited Methods

Inherited From Xyster_Container_Injection_Abstract

Xyster_Container_Injection_Abstract::__construct()
Xyster_Container_Injection_Abstract::accept()
Xyster_Container_Injection_Abstract::useNames()
Xyster_Container_Injection_Abstract::_caughtInstantiationException()
Xyster_Container_Injection_Abstract::_caughtInvocationTargetException()
Xyster_Container_Injection_Abstract::_checkConcrete()
Xyster_Container_Injection_Abstract::_createDefaultParameters()
Xyster_Container_Injection_Abstract::_newInstance()

Inherited From Xyster_Container_Adapter_Abstract

Xyster_Container_Adapter_Abstract::__construct()
Xyster_Container_Adapter_Abstract::accept()
Xyster_Container_Adapter_Abstract::changeMonitor()
Xyster_Container_Adapter_Abstract::currentMonitor()
Xyster_Container_Adapter_Abstract::getDelegate()
Xyster_Container_Adapter_Abstract::getImplementation()
Xyster_Container_Adapter_Abstract::getKey()
Xyster_Container_Adapter_Abstract::_checkTypeCompatibility()
Xyster_Container_Adapter_Abstract::__toString()

Documentation generated on Mon, 19 May 2008 17:08:23 -0400 by phpDocumentor 1.4.2