Class Xyster_Container_Adapter_Instance

Description

Implements interfaces:

Component adapter which wraps a component instance

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

Located in /Container/Adapter/Instance.php (line 32)

Xyster_Container_Adapter_Abstract
   |
   --Xyster_Container_Adapter_Instance
Method Summary
Xyster_Container_Adapter_Instance __construct (mixed $key, mixed $instance, [Xyster_Container_Monitor $monitor = null])
string getDescriptor ()
object the getInstance (Xyster_Container_Interface $container)
void verify (Xyster_Container_Interface $container)
Methods
Constructor __construct (line 46)

Creates a new adapter for a key and implementation

  • access: public
Xyster_Container_Adapter_Instance __construct (mixed $key, mixed $instance, [Xyster_Container_Monitor $monitor = null])

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

Gets the descriptor of this adapter

  • access: public
string getDescriptor ()

Implementation of:
Xyster_Container_Adapter::getDescriptor()
Gets the descriptor of this adapter
getInstance (line 70)

Retrieve the component instance

  • return: component instance.
  • throws: Exception if the component could not be instantiated.
  • 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.
object the getInstance (Xyster_Container_Interface $container)

Implementation of:
Xyster_Container_Adapter::getInstance()
Retrieve the component instance
verify (line 81)

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)

Implementation of:
Xyster_Container_Adapter::verify()
Verify that all dependencies for this adapter can be satisifed

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