Changeset 679
- Timestamp:
- 05/28/07 15:21:54 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/stubRegistryInitializer.php
r385 r679 16 16 { 17 17 /** 18 * sets the config source 19 * 20 * @param string $source 21 */ 22 public function setConfigSource($source); 23 24 /** 18 25 * initialize the Registry with configuration values 19 26 * trunk/src/main/php/net/stubbles/util/stubRegistryXJConfInitializer.php
r584 r679 20 20 { 21 21 /** 22 * name of the configuration file to use 23 * 24 * @var string 25 */ 26 protected $source = 'config'; 27 28 /** 29 * sets the config source 30 * 31 * @param string $source 32 */ 33 public function setConfigSource($source) 34 { 35 $this->source = $source; 36 } 37 38 /** 22 39 * returns the descriptor that identifies this initializer 23 40 * … … 26 43 public function getDescriptor() 27 44 { 28 return 'config';45 return $this->source; 29 46 } 30 47 trunk/src/test/php/net/stubbles/util/stubRegistryXJConfInitializerTestCase.php
r538 r679 47 47 { 48 48 $this->assertEqual($this->registryXJConfInitializer->getDescriptor(), 'config'); 49 $this->registryXJConfInitializer->setConfigSource('test'); 50 $this->assertEqual($this->registryXJConfInitializer->getDescriptor(), 'test'); 49 51 } 50 52
