Class Xyster_Container_Behavior_Abstract

Description

Implements interfaces:

Component adapter which decorates another adapter

This adapter supports a monitor strategoy and will propagate change of monitor to the delegate if the delegate iteslf supports the monitor strategy.

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

Located in /Container/Behavior/Abstract.php (line 35)


	
			
Direct descendents
Class Description
Xyster_Container_Behavior_Automated Automated behavior
Xyster_Container_Behavior_PropertyApplicator Behavior to apply properties
Xyster_Container_Behavior_Stored Stored behavior
Variable Summary
Method Summary
Variables
Xyster_Container_Adapter $_delegate (line 40)
  • access: protected
Methods
Constructor __construct (line 47)

Creates a new behavior.

  • access: public
Xyster_Container_Behavior_Abstract __construct (Xyster_Container_Adapter $delegate)

Redefined in descendants as:
accept (line 59)

Accepts a visitor for this Adapter

{@inherit}

  • access: public
void accept (Xyster_Container_Visitor $visitor)

Implementation of:
Xyster_Container_Adapter::accept()
Accepts a visitor for this Adapter
changeMonitor (line 69)

Delegates change of monitor if the delegate supports a component monitor strategy

{@inherit}

  • access: public
void changeMonitor (Xyster_Container_Monitor $monitor)

Implementation of:
Xyster_Container_Monitor_Strategy::changeMonitor()
Changes the component monitor used
currentMonitor (line 83)

Returns delegate's current monitor if the delegate supports a component monitor strategy.

{@inheritDoc}

  • throws: Exception if no component monitor is found in delegate
  • access: public
Xyster_Container_Monitor currentMonitor ()

Implementation of:
Xyster_Container_Monitor_Strategy::currentMonitor()
Gets the monitor currently used
getDelegate (line 95)
  • access: public
Xyster_Container_Adapter getDelegate ()

Implementation of:
Xyster_Container_Adapter::getDelegate()
getImplementation (line 107)

Retrieve the class of the component

{@inherit}

  • return: the component's implementation class
  • access: public
Xyster_Type getImplementation ()

Implementation of:
Xyster_Container_Adapter::getImplementation()
Retrieve the class of the component
getInstance (line 122)

Retrieve the component instance

{@inherit}

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

Implementation of:
Xyster_Container_Adapter::getInstance()
Retrieve the component instance

Redefined in descendants as:
getKey (line 134)

Retrieve the key associated with the component

{@inherit}

  • return: the component's key
  • access: public
mixed getKey ()

Implementation of:
Xyster_Container_Adapter::getKey()
Retrieve the key associated with the component
verify (line 147)

Verify that all dependencies for this adapter can be satisifed

{@inherit}

  • 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
__toString (line 157)

Returns the string representation of the object

  • access: public
string __toString ()

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