Changeset 320

Show
Ignore:
Timestamp:
03/02/07 13:26:35 (1 year ago)
Author:
mikey
Message:

renamed net.stubbles.util.stubRegistryFactory to net.stubbles.util.stubRegistryInitializer
net.stubbles.util.stubRegistryInitializer now implements the stubPreInterceptor interface
added net.stubbles.util.stubRegistryInitializer as preinterceptor to config/xml/interceptors.xml

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/xml/interceptors.xml

    r229 r320  
    33    xmlns:xj="http://xjconf.net/XJConf" 
    44    xmlns="http://stubbles.net/ipo/interceptors"> 
    5   <preInterceptors /> 
     5  <preInterceptors> 
     6    <preInterceptor type="net.stubbles.util.stubRegistryInitializer" /> 
     7  </preInterceptors> 
    68  <postInterceptors /> 
    79</xj:configuration> 
  • trunk/src/main/php/net/stubbles/util/stubRegistryInitializer.php

    r312 r320  
    77 * @subpackage  util 
    88 */ 
    9 stubClassLoader::load('net.stubbles.util.xjconf.xjconf'); 
     9stubClassLoader::load('net.stubbles.stubFactory', 
     10                      'net.stubbles.ipo.interceptors.stubPreInterceptor', 
     11                      'net.stubbles.util.xjconf.xjconf' 
     12); 
    1013/** 
    1114 * Class for initializing the Registry. 
    1215 * 
    13  * @static 
    1416 * @package     stubbles 
    1517 * @subpackage  util 
    1618 */ 
    17 class stubRegistryFactory 
     19class stubRegistryInitializer extends stubBaseObject implements stubPreInterceptor 
    1820{ 
    1921    /** 
     
    2931        $xjconf->parse($configFile); 
    3032    } 
     33     
     34    /** 
     35     * does the preprocessing stuff 
     36     */ 
     37    public function preProcess() 
     38    { 
     39        self::init(stubConfig::getConfigPath() . '/xml/config.xml'); 
     40    } 
    3141} 
    3242?>