Class Xyster_Container_Injection_Method

Description

Instantiates component using method injection

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

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

Xyster_Container_Adapter_Abstract
   |
   --Xyster_Container_Injection_Abstract
      |
      --Xyster_Container_Injection_SingleMember
         |
         --Xyster_Container_Injection_Method
Variable Summary
mixed $_methodName
Method Summary
Xyster_Container_Injection_Method __construct (mixed $key, mixed $implementation, [ $parameters = null], [Xyster_Container_Monitor $monitor = null], [string $methodName = 'inject'])
string getDescriptor ()
object the getInstance (Xyster_Container_Interface $container)
void verify (Xyster_Container_Interface $container)
ReflectionMethod _getInjectorMethod ()
Variables
mixed $_methodName (line 30)
  • access: protected

Inherited Variables

Inherited from Xyster_Container_Injection_Abstract

Xyster_Container_Injection_Abstract::$_parameters
Methods
Constructor __construct (line 41)

Creates a methodinjector

  • access: public
Xyster_Container_Injection_Method __construct (mixed $key, mixed $implementation, [ $parameters = null], [Xyster_Container_Monitor $monitor = null], [string $methodName = 'inject'])

Redefinition of:
Xyster_Container_Injection_Abstract::__construct()
Constructs a new adapter for the given key and implementation
getDescriptor (line 52)

Gets the descriptor of this adapter

  • access: public
string getDescriptor ()
getInstance (line 65)

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 95)

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)
_getInjectorMethod (line 114)

Gets the method to use for injection

  • access: protected
ReflectionMethod _getInjectorMethod ()

Inherited Methods

Inherited From Xyster_Container_Injection_SingleMember

Xyster_Container_Injection_SingleMember::_getMemberArguments()

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:24 -0400 by phpDocumentor 1.4.2