Changeset 1395
- Timestamp:
- 03/03/08 16:42:37 (7 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/events/stubEventsInitializer.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/events/stubEventsXJConfInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/interceptors/stubInterceptorInitializer.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/ipo/interceptors/stubInterceptorXJConfInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/lang/stubInitializer.php (added)
- trunk/src/main/php/net/stubbles/rdbms/stubDatabaseInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/cache/stubCacheInitializer.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/util/cache/stubCacheXJConfInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/log/stubLoggerXJConfFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/stubRegistryInitializer.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/util/stubRegistryXJConfInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/xjconf/stubXJConfAbstractInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/xjconf/stubXJConfInitializer.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisConfig.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolverFactory.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolverXJConfFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/variantmanager/stubVariantXJConfFactory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/events/stubEventsInitializer.php
r1035 r1395 1 1 <?php 2 2 /** 3 * Interface for initializing the event configuration.3 * Marker interface for initializing the event configuration. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> … … 7 7 * @subpackage events 8 8 */ 9 stubClassLoader::load('net::stubbles::lang::stubInitializer'); 9 10 /** 10 * Interface for initializing the event configuration.11 * Marker interface for initializing the event configuration. 11 12 * 12 13 * @package stubbles 13 14 * @subpackage events 14 15 */ 15 interface stubEventsInitializer extends stub Object16 interface stubEventsInitializer extends stubInitializer 16 17 { 17 /** 18 * initialize the interceptors 19 */ 20 public function init(); 18 // intentionally empty 21 19 } 22 20 ?> trunk/src/main/php/net/stubbles/events/stubEventsXJConfInitializer.php
r1209 r1395 120 120 121 121 /** 122 * initialize the interceptors123 *124 * @throws stubXJConfException125 */126 public function init()127 {128 $xjconfProxy = new stubXJConfProxy($this);129 $xjconfProxy->process();130 }131 132 /**133 122 * does the preprocessing stuff 134 123 * trunk/src/main/php/net/stubbles/ipo/interceptors/stubInterceptorInitializer.php
r1223 r1395 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ipo::interceptors::stubPostInterceptor', 10 'net::stubbles::ipo::interceptors::stubPreInterceptor' 10 'net::stubbles::ipo::interceptors::stubPreInterceptor', 11 'net::stubbles::lang::stubInitializer' 11 12 ); 12 13 /** … … 16 17 * @subpackage ipo_interceptors 17 18 */ 18 interface stubInterceptorInitializer extends stub Object19 interface stubInterceptorInitializer extends stubInitializer 19 20 { 20 /**21 * initialize the interceptors22 *23 * @throws stubException24 */25 public function init();26 27 21 /** 28 22 * sets the descriptor that identifies the initializer trunk/src/main/php/net/stubbles/ipo/interceptors/stubInterceptorXJConfInitializer.php
r1265 r1395 151 151 152 152 /** 153 * initialize the interceptors154 *155 * @throws stubXJConfException156 */157 public function init()158 {159 $xjconfProxy = new stubXJConfProxy($this);160 $xjconfProxy->process();161 }162 163 /**164 153 * sets the list of pre interceptors 165 154 * trunk/src/main/php/net/stubbles/rdbms/stubDatabaseInitializer.php
r1281 r1395 69 69 70 70 /** 71 * initialize the Registry with configuration values from given configuration file72 *73 * @throws stubXJConfException74 */75 public function init()76 {77 $xjconfProxy = new stubXJConfProxy($this);78 $xjconfProxy->process();79 }80 81 /**82 71 * does the preprocessing stuff 83 72 * trunk/src/main/php/net/stubbles/util/cache/stubCacheInitializer.php
r1230 r1395 1 1 <?php 2 2 /** 3 * Interface for initializing the cache.3 * Marker interface for initializing the cache. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> … … 7 7 * @subpackage util_cache 8 8 */ 9 stubClassLoader::load('net::stubbles::ipo::interceptors::stubPreInterceptor'); 9 stubClassLoader::load('net::stubbles::ipo::interceptors::stubPreInterceptor', 10 'net::stubbles::lang::stubInitializer' 11 ); 10 12 /** 11 * Interface for initializing the cache.13 * Marker interface for initializing the cache. 12 14 * 13 15 * @package stubbles 14 16 * @subpackage util_cache 15 17 */ 16 interface stubCacheInitializer extends stubPreInterceptor 18 interface stubCacheInitializer extends stubPreInterceptor, stubInitializer 17 19 { 18 /** 19 * does the real initializing 20 */ 21 public function init(); 20 // intentionally empty 22 21 } 23 22 ?> trunk/src/main/php/net/stubbles/util/cache/stubCacheXJConfInitializer.php
r1281 r1395 69 69 70 70 /** 71 * does the real initializing72 */73 public function init()74 {75 $xjconfProxy = new stubXJConfProxy($this);76 $xjconfProxy->process();77 }78 79 /**80 71 * does the preprocessing stuff 81 72 * trunk/src/main/php/net/stubbles/util/log/stubLoggerXJConfFactory.php
r1281 r1395 111 111 // intentionally empty, all stubLogger instances are inside a static member of stubLogger 112 112 } 113 114 /**115 * initialize the stubLogger116 *117 * @throws stubXJConfException118 */119 public function init()120 {121 $xjconfProxy = new stubXJConfProxy($this);122 $xjconfProxy->process();123 }124 113 } 125 114 ?> trunk/src/main/php/net/stubbles/util/stubRegistryInitializer.php
r1301 r1395 7 7 * @subpackage util 8 8 */ 9 stubClassLoader::load('net::stubbles::lang::stubInitializer'); 9 10 /** 10 11 * Interface for initializing the Registry. … … 13 14 * @subpackage util 14 15 */ 15 interface stubRegistryInitializer extends stub Object16 interface stubRegistryInitializer extends stubInitializer 16 17 { 17 18 /** … … 21 22 */ 22 23 public function setConfigSource($source); 23 24 /**25 * initialize the Registry with configuration values26 */27 public function init();28 24 } 29 25 ?> trunk/src/main/php/net/stubbles/util/stubRegistryXJConfInitializer.php
r1307 r1395 97 97 // intentionally empty 98 98 } 99 100 /**101 * initialize the Registry with configuration values from given configuration file102 *103 * @throws stubXJConfException104 */105 public function init()106 {107 $xjconfProxy = new stubXJConfProxy($this);108 $xjconfProxy->process();109 }110 99 } 111 100 ?> trunk/src/main/php/net/stubbles/util/xjconf/stubXJConfAbstractInitializer.php
r1281 r1395 18 18 abstract class stubXJConfAbstractInitializer extends stubBaseObject implements stubXJConfInitializer 19 19 { 20 /** 21 * initialize the interceptors 22 * 23 * @throws stubXJConfException 24 */ 25 public function init() 26 { 27 $xjconfProxy = new stubXJConfProxy($this); 28 $xjconfProxy->process(); 29 } 30 20 31 /** 21 32 * returns definitions that are additionally required beyond the default definition trunk/src/main/php/net/stubbles/util/xjconf/stubXJConfInitializer.php
r1307 r1395 8 8 * @subpackage util_xjconf 9 9 */ 10 stubClassLoader::load('net::stubbles::util::xjconf::stubXJConfFacade'); 10 stubClassLoader::load('net::stubbles::lang::stubInitializer', 11 'net::stubbles::util::xjconf::stubXJConfFacade' 12 ); 11 13 /** 12 14 * Common interface for XJConf based initializers and factories that use the … … 16 18 * @subpackage util_xjconf 17 19 */ 18 interface stubXJConfInitializer extends stubObject 20 interface stubXJConfInitializer extends stubObject, stubInitializer 19 21 { 20 22 /** trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisConfig.php
r1281 r1395 30 30 public function __construct() 31 31 { 32 $xjconfProxy = new stubXJConfProxy($this); 33 $xjconfProxy->process(); 32 $this->init(); 34 33 if (isset($this->config['parts']) === false || count($this->config['parts']) === 0) { 35 34 throw new stubRuntimeException('No parts configured.'); trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolverFactory.php
r1231 r1395 7 7 * @subpackage websites_processors 8 8 */ 9 stubClassLoader::load('net::stubbles::websites::processors::stubProcessorResolver'); 9 stubClassLoader::load('net::stubbles::lang::stubInitializer', 10 'net::stubbles::websites::processors::stubProcessorResolver' 11 ); 10 12 /** 11 13 * Interface for creating a resolver. … … 14 16 * @subpackage websites_processors 15 17 */ 16 interface stubProcessorResolverFactory extends stubObject18 interface stubProcessorResolverFactory extends stubInitializer 17 19 { 18 /**19 * initialize the resolver20 *21 * @throws stubException22 */23 public function init();24 25 20 /** 26 21 * returns the resolver trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolverXJConfFactory.php
r1281 r1395 69 69 70 70 /** 71 * initialize the resolver72 *73 * @throws stubXJConfException74 */75 public function init()76 {77 $xjconfProxy = new stubXJConfProxy($this);78 $xjconfProxy->process();79 }80 81 /**82 71 * sets the resolver 83 72 * trunk/src/main/php/net/stubbles/websites/variantmanager/stubVariantXJConfFactory.php
r1281 r1395 26 26 public function __construct() 27 27 { 28 $xjconfProxy = new stubXJConfProxy($this);29 28 try { 30 $ xjconfProxy->process();29 $this->init(); 31 30 } catch (stubXJConfException $xjce) { 32 31 throw new stubVariantConfigurationException('Can not read variant configuration: ' . $xjce->getMessage(), $xjce); 33 32 } 33 } 34 35 /** 36 * initialize the interceptors 37 * 38 * @throws stubXJConfException 39 */ 40 public function init() 41 { 42 $xjconfProxy = new stubXJConfProxy($this); 43 $xjconfProxy->process(); 34 44 } 35 45
