Interface Xyster_Container_Adapter_Factory

Description

Responsible for creating component adapters

The main use of the factory is to customize the default component adapter used when none is specified explicitly.

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

Located in /Container/Adapter/Factory.php (line 27)


	
			
Direct descendents
Class Description
Xyster_Container_Injection_Factory An tagging interface for Injection factories
Xyster_Container_Behavior_Factory Extends Xyster_Container_Adapter_Factory to provide methods for Behaviors
Method Summary
Xyster_Container_Adapter createComponentAdapter (Xyster_Container_Monitor $monitor,  $properties, mixed $key, string $implementation, mixed $parameters)
Methods
createComponentAdapter (line 55)

Create a new component adapter based on the specified arguments

The $key parameter should be returned from a call to getComponentKey() on the created adapter.

The $implementation parameter is the implementation class to be associated with this adapter. This value should be returned from a call to getImplementation() on the created adapter. Should not be null.

The $parameters parameter are additional parameters to use by the component adapter in constructing component instances. These may be used, for example, to make decisions about the arguments passed into the component constructor. These should be considered hints; they may be ignored by some implementations. May be null, and may be of zero length.

  • return: The component adapter
  • throws: Exception if the creation of the component adapter fails
Xyster_Container_Adapter createComponentAdapter (Xyster_Container_Monitor $monitor,  $properties, mixed $key, string $implementation, mixed $parameters)
  • Xyster_Container_Monitor $monitor: the component monitor
  • Xyster_Collection_Map_Interface $properties: the component properties
  • mixed $key: the key to be associated with this adapter.
  • string $implementation
  • mixed $parameters

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