Interface Xyster_Container_Monitor

Description

Responsible for monitoring the component instantiation and method invocation

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

Located in /Container/Monitor.php (line 24)


	
			
Method Summary
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
instantiated (line 46)

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

This should be called for both Constructor and Setter DI.

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
instantiating (line 33)

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

void instantiating (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter, [ $class = null])
instantiationFailed (line 58)

Event thrown if the component instantiation failed using the given constructor

void instantiationFailed (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $class,  $cause)
invocationFailed (line 90)

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

void invocationFailed ( $member, mixed $instance,  $cause)
  • ReflectionMethod $member
  • mixed $instance: the component instance
  • Exception $cause: the Exception detailing the cause of the failure
invoked (line 80)

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

void invoked (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $method, mixed $instance, float $duration)
invoking (line 69)

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

void invoking (Xyster_Container_Interface $container, Xyster_Container_Adapter $adapter,  $member, mixed $instance)
noComponentFound (line 98)
mixed noComponentFound (Xyster_Container_Interface $container, mixed $key)

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