Class Xyster_Container_Monitor_Abstract

Description

Implements interfaces:

A monitor which delegates to another monitor

It provides a Xyster_Container_Monitor_Null by default, but does not allow to use

  1. null
for the delegate.

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

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


	
			
Direct descendents
Class Description
Xyster_Container_Monitor_Log A monitor that writes out to a Zend_Log instance.
Class Constant Summary
 INSTANTIATED = "Xyster_Container: instantiated %s [%0.5f ms] injected [%s]"
 INSTANTIATING = "Xyster_Container: instantiating %s"
 INSTANTIATION_FAILED = "Xyster_Container: instantiation failed: %s, reason: %s"
 INVOCATION_FAILED = "Xyster_Container: invocation failed: %s on %s, reason: %s"
 INVOKED = "Xyster_Container: invoked %s on %s [%0.5f ms]"
 INVOKING = "Xyster_Container: invoking %s on %s"
 NO_COMPONENT = "Xyster_Container: No component for key: %s"
Method Summary
static string parmsToString ( $injected)
Xyster_Container_Monitor_Abstract __construct ([Xyster_Container_Monitor $delegate = null])
void instantiated (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter, [ $class = null], mixed $instantiated, [ $injected = null], float $duration)
void instantiating (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter, [ $class = null])
void instantiationFailed (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $class,  $cause)
void invocationFailed ( $member, mixed $instance,  $cause)
void invoked (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $method, mixed $instance, float $duration)
void invoking (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $member, mixed $instance)
mixed noComponentFound (Xyster_Container_Interface $container, mixed $key)
Methods
static method parmsToString (line 186)

Converts an array of values into a string of their type names

  • access: public
static string parmsToString ( $injected)
  • array $injected
Constructor __construct (line 55)

Creates a new delegating monitor

  • access: public
Xyster_Container_Monitor_Abstract __construct ([Xyster_Container_Monitor $delegate = null])

Redefined in descendants as:
changeMonitor (line 69)

Changes the component monitor used

  • access: public
void changeMonitor (Xyster_Container_Monitor $monitor)

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

Gets the monitor currently used

  • return: The monitor currently used
  • access: public
Xyster_Container_Monitor currentMonitor ()

Implementation of:
Xyster_Container_Monitor_Strategy::currentMonitor()
Gets the monitor currently used
instantiated (line 112)

Event thrown after the component has been instantiated using the given constructor.

This should be called for both Constructor and Setter DI.

  • access: public
void instantiated (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter, [ $class = null], mixed $instantiated, [ $injected = null], float $duration)
  • Xyster_Container_Interface $container
  • Xyster_Container_Adapter $adapter
  • Xyster_Type $class: the class being instantiated
  • mixed $instantiated: the component that was instantiated
  • array $injected: the components during instantiation
  • float $duration: the duration in millis of the instantiation

Implementation of:
Xyster_Container_Monitor::instantiated()
Event thrown after the component has been instantiated using the given constructor.

Redefined in descendants as:
instantiating (line 96)

Event thrown as the component is being instantiated using the given constructor

  • access: public
void instantiating (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter, [ $class = null])

Implementation of:
Xyster_Container_Monitor::instantiating()
Event thrown as the component is being instantiated using the given constructor

Redefined in descendants as:
instantiationFailed (line 125)

Event thrown if the component instantiation failed using the given constructor

  • access: public
void instantiationFailed (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $class,  $cause)

Implementation of:
Xyster_Container_Monitor::instantiationFailed()
Event thrown if the component instantiation failed using the given constructor

Redefined in descendants as:
invocationFailed (line 164)

Event thrown if the component method invocation failed on the given instance

  • access: public
void invocationFailed ( $member, mixed $instance,  $cause)
  • ReflectionMethod $member
  • mixed $instance: the component instance
  • Exception $cause: the Exception detailing the cause of the failure

Implementation of:
Xyster_Container_Monitor::invocationFailed()
Event thrown if the component method invocation failed on the given instance

Redefined in descendants as:
invoked (line 152)

Event thrown after the component method has been invoked on the given instance

  • access: public
void invoked (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $method, mixed $instance, float $duration)

Implementation of:
Xyster_Container_Monitor::invoked()
Event thrown after the component method has been invoked on the given instance

Redefined in descendants as:
invoking (line 138)

Event thrown as the component method is being invoked on the given instance

  • access: public
void invoking (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $member, mixed $instance)

Implementation of:
Xyster_Container_Monitor::invoking()
Event thrown as the component method is being invoked on the given instance

Redefined in descendants as:
noComponentFound (line 175)
  • access: public
mixed noComponentFound (Xyster_Container_Interface $container, mixed $key)

Implementation of:
Xyster_Container_Monitor::noComponentFound()

Redefined in descendants as:
Class Constants
INSTANTIATED = "Xyster_Container: instantiated %s [%0.5f ms] injected [%s]" (line 38)
INSTANTIATING = "Xyster_Container: instantiating %s" (line 37)
INSTANTIATION_FAILED = "Xyster_Container: instantiation failed: %s, reason: %s" (line 39)
INVOCATION_FAILED = "Xyster_Container: invocation failed: %s on %s, reason: %s" (line 42)
INVOKED = "Xyster_Container: invoked %s on %s [%0.5f ms]" (line 41)
INVOKING = "Xyster_Container: invoking %s on %s" (line 40)
NO_COMPONENT = "Xyster_Container: No component for key: %s" (line 43)

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