Class Xyster_Container_Behavior_Stored

Description

Stored behavior

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

Located in /Container/Behavior/Stored.php (line 28)

Xyster_Container_Behavior_Abstract
   |
   --Xyster_Container_Behavior_Stored
Direct descendents
Class Description
Xyster_Container_Behavior_Cached Cached behavior
Variable Summary
Method Summary
Xyster_Container_Behavior_Stored __construct (Xyster_Container_Adapter $delegate, Xyster_Container_Reference $reference)
void flush ()
string getDescriptor ()
object the getInstance (Xyster_Container_Interface $container)
mixed getStoredObject ()
Variables
Xyster_Container_Reference $_instanceReference (line 33)
  • access: protected

Inherited Variables

Inherited from Xyster_Container_Behavior_Abstract

Xyster_Container_Behavior_Abstract::$_delegate
Methods
Constructor __construct (line 41)

Creates a new stored behavior

  • access: public
Xyster_Container_Behavior_Stored __construct (Xyster_Container_Adapter $delegate, Xyster_Container_Reference $reference)

Redefinition of:
Xyster_Container_Behavior_Abstract::__construct()
Creates a new behavior.

Redefined in descendants as:
flush (line 52)

Flushes the cache.

If the component instance is started is will stop and dispose it before flushing the cache.

  • access: public
void flush ()
getDescriptor (line 63)

Gets the descriptor for this adapter

  • access: public
string getDescriptor ()

Redefined in descendants as:
getInstance (line 78)

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)

Redefinition of:
Xyster_Container_Behavior_Abstract::getInstance()
Retrieve the component instance
getStoredObject (line 96)

Retrieves the stored reference.

May be null if it has never been set, or possibly if the reference has been flushed.

  • return: the stored object or null
  • access: public
mixed getStoredObject ()

Inherited Methods

Inherited From Xyster_Container_Behavior_Abstract

Xyster_Container_Behavior_Abstract::__construct()
Xyster_Container_Behavior_Abstract::accept()
Xyster_Container_Behavior_Abstract::changeMonitor()
Xyster_Container_Behavior_Abstract::currentMonitor()
Xyster_Container_Behavior_Abstract::getDelegate()
Xyster_Container_Behavior_Abstract::getImplementation()
Xyster_Container_Behavior_Abstract::getInstance()
Xyster_Container_Behavior_Abstract::getKey()
Xyster_Container_Behavior_Abstract::verify()
Xyster_Container_Behavior_Abstract::__toString()

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