A loader which makes it possible to apply AOP interceptors to state classes.
This loader goes between the
class and the
class. The interceptors to be applied are configured on the interceptor loader and that loader is responsible for loading the classes, using the configured state class loader.
- Ismo_Core_State
Example:
- // create the loader for the state classes
- $stateClassLoader =& new Ismo_Core_Loaders_FileSystem();
- $stateClassLoader->setPath('./states');
- // create the interceptor loader
- $interceptorLoader =& new Ismo_Core_Loaders_Interceptor();
- $interceptorLoader->setStateLoader($stateClassLoader);
- // create an interceptor
- $exampleInterceptor =& new ExampleInterceptor();
- // and add it to the interceptor loader
- $interceptorLoader->addInterceptor( '*',
- array('execdefault'),
- $exampleInterceptor);
Located in /Loaders/Interceptor.php (line 168)
The constructor
Adds an interceptor.
Returns an instance of the requested class.
Because this is the interceptor loader the returned class is not the actual class, but instead a proxy for that class. The proxy will execute configured interceptors when methods are called on the proxy.
Sets the state loader.
Documentation generated on Mon, 14 Jun 2004 11:59:26 +0200 by phpDocumentor 1.3.0RC3