Class Xyster_Container_Injection_Abstract

Description

This adapter will instantiate a new object for each call to getInstance

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

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

Xyster_Container_Adapter_Abstract
   |
   --Xyster_Container_Injection_Abstract
Direct descendents
Class Description
Xyster_Container_Injection_SingleMember This adapter will instantiate a new object for each call to getInstance
Xyster_Container_Injection_Iterative This injector goes over a list of items
Variable Summary
mixed $_parameters
Method Summary
Xyster_Container_Injection_Abstract __construct (mixed $key, Xyster_Type $implementation, [ $parameters = null], [Xyster_Container_Monitor $monitor = null], [boolean $useNames = false])
void accept (Xyster_Container_Visitor $visitor)
boolean useNames ()
void _caughtInvocationTargetException (Xyster_Container_Monitor $monitor,  $member, mixed $componentInstance,  $e)
void _checkConcrete ()
array _createDefaultParameters ( $parameters)
object the _newInstance ( $type, [ $parameters = array()])
Variables
mixed $_parameters = array() (line 30)
  • access: protected
Methods
Constructor __construct (line 43)

Constructs a new adapter for the given key and implementation

  • access: public
Xyster_Container_Injection_Abstract __construct (mixed $key, Xyster_Type $implementation, [ $parameters = null], [Xyster_Container_Monitor $monitor = null], [boolean $useNames = false])

Redefinition of:
Xyster_Container_Adapter_Abstract::__construct()
Creates a new adapter for a key and implementation

Redefined in descendants as:
accept (line 67)

Accepts a visitor for this Adapter

{@inherit}

  • access: public
void accept (Xyster_Container_Visitor $visitor)

Redefinition of:
Xyster_Container_Adapter_Abstract::accept()
Accepts a visitor for this Adapter
useNames (line 83)

Gets whether the option to use parameter names has been set

  • access: public
boolean useNames ()
_caughtInstantiationException (line 144)

Inform monitor about component instantiation failure

  • access: protected
void _caughtInstantiationException (Xyster_Container_Monitor $monitor,  $class,  $e, Xyster_Container_Interface $container)
_caughtInvocationTargetException (line 159)

Inform monitor about error while instantiating component

  • access: protected
void _caughtInvocationTargetException (Xyster_Container_Monitor $monitor,  $member, mixed $componentInstance,  $e)
_checkConcrete (line 93)

Checks to make sure the current implementation is a concrete class

  • throws: Xyster_Container_Injection_Exception if the implementation isn't concrete
  • access: protected
void _checkConcrete ()
_createDefaultParameters (line 108)

Create default parameters for the given types

  • return: the array with the default parameters.
  • access: protected
array _createDefaultParameters ( $parameters)
  • array $parameters: the parameter types (Xyster_Type objects)
_newInstance (line 125)

Instantiate an object with given parameters and respect the accessible flag

  • return: new object
  • access: protected
object the _newInstance ( $type, [ $parameters = array()])
  • Xyster_Type $type: the class to construct
  • array $parameters: the parameters for the constructor

Inherited Methods

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