Responsible for providing an instance of a specific type
An instance of this interface will be used inside a container for every component that is registered.
Located in /Container/Adapter.php (line 27)
Class | Description |
---|---|
Xyster_Container_Behavior | Tagging interface; Behaviors modify the components created by an Injector |
Accepts a visitor for this Adapter
The method is normally called by visiting a Xyster_Container_Interface, that cascades the visitor also down to all its Component Adapter instances.
Gets the descriptor of this adapter
Retrieve the class of the component
Should normally be a concrete class (ie, a class that can be instantiated).
Retrieve the component instance
This method will usually create a new instance each time it is called, but that is not required.
For example, Xyster_Container_Behavior_Cached will always return the same instance.
Retrieve the key associated with the component
Should either be a class type (normally an interface) or an identifier that is unique (within the scope of the current Container).
Verify that all dependencies for this adapter can be satisifed
Normally, the adapter should verify this by checking that the associated Container contains all the needed dependnecies.
Documentation generated on Mon, 19 May 2008 17:08:11 -0400 by phpDocumentor 1.4.2