Changeset 1534
- Timestamp:
- 04/12/08 19:12:03 (1 month ago)
- Files:
-
- trunk/config/xml/config.xml (modified) (1 diff)
- trunk/examples/config/xml/config.xml (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ioc/stubAbstractIOCPreInterceptor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ioc/stubBindingScopeSession.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ioc/stubIOCPreInterceptor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/request/filters/stubFloatFilter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/session/stubPHPSession.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/lang/stubRegistry.php (moved) (moved from trunk/src/main/php/net/stubbles/util/stubRegistry.php) (4 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcAbstractInvokingSubProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/cache/stubFileCacheContainer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/log/stubLogDataFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/stubRegistryXJConfInitializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisPatTemplate.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/rasmus/stubRasmusProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/stubFrontController.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/variantmanager/stubVariantsPreInterceptor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/generator/stubModeXMLGenerator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/generator/stubSessionXMLGenerator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/skin/stubDefaultSkinGenerator.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php (modified) (1 diff)
- trunk/src/main/php/org/stubbles/phing/tasks/stubCheckInitializersTask.php (modified) (1 diff)
- trunk/src/main/resources/xjconf/config.xml (modified) (1 diff)
- trunk/src/test/php/net/stubbles/lang/stubRegistryTestCase.php (moved) (moved from trunk/src/test/php/net/stubbles/util/stubRegistryTestCase.php) (1 diff)
- trunk/src/test/php/net/stubbles/stubTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/UtilTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/xjconf/stubXJConfProxyTestCase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/xml/config.xml
r1361 r1534 2 2 <xj:configuration 3 3 xmlns:xj="http://xjconf.net/XJConf" 4 xmlns="http://stubbles.net/ util/registry">4 xmlns="http://stubbles.net/lang/registry"> 5 5 <config name="net.stubbles.language" value="en_EN" /> 6 6 <config name="net.stubbles.number.decimals" value="4" /> trunk/examples/config/xml/config.xml
r1361 r1534 2 2 <xj:configuration 3 3 xmlns:xj="http://xjconf.net/XJConf" 4 xmlns="http://stubbles.net/ util/registry">4 xmlns="http://stubbles.net/lang/registry"> 5 5 <config name="net.stubbles.mode" value="test" /> 6 6 <config name="net.stubbles.language" value="en_EN" /> trunk/src/main/php/net/stubbles/ioc/stubAbstractIOCPreInterceptor.php
r1371 r1534 9 9 stubClassLoader::load('net::stubbles::ipo::interceptors::stubPreInterceptor', 10 10 'net::stubbles::ioc::stubBinder', 11 'net::stubbles:: util::stubRegistry'11 'net::stubbles::lang::stubRegistry' 12 12 ); 13 13 /** trunk/src/main/php/net/stubbles/ioc/stubBindingScopeSession.php
r1390 r1534 10 10 'net::stubbles::ioc::stubBindingScope', 11 11 'net::stubbles::ioc::stubValueInjectionProvider', 12 'net::stubbles::lang:: exceptions::stubRuntimeException',13 'net::stubbles:: util::stubRegistry'12 'net::stubbles::lang::stubRegistry', 13 'net::stubbles::lang::exceptions::stubRuntimeException' 14 14 ); 15 15 /** trunk/src/main/php/net/stubbles/ioc/stubIOCPreInterceptor.php
r1416 r1534 10 10 stubClassLoader::load('net::stubbles::ipo::interceptors::stubPreInterceptor', 11 11 'net::stubbles::ioc::stubBinder', 12 'net::stubbles:: util::stubRegistry'12 'net::stubbles::lang::stubRegistry' 13 13 ); 14 14 /** trunk/src/main/php/net/stubbles/ipo/request/filters/stubFloatFilter.php
r1329 r1534 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ipo::request::filters::stubFilter', 10 'net::stubbles:: util::stubRegistry'10 'net::stubbles::lang::stubRegistry' 11 11 ); 12 12 /** trunk/src/main/php/net/stubbles/ipo/session/stubPHPSession.php
r1532 r1534 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ipo::session::stubAbstractSession', 10 'net::stubbles::lang::stubRegistry', 10 11 'net::stubbles::php::string::stubMd5Encoder', 11 'net::stubbles::util::stubRegistry',12 12 'net::stubbles::util::validators::stubPassThruValidator' 13 13 ); trunk/src/main/php/net/stubbles/lang/stubRegistry.php
r526 r1534 5 5 * @author Frank Kleine <mikey@stubbles.net> 6 6 * @package stubbles 7 * @subpackage util7 * @subpackage lang 8 8 */ 9 9 /** … … 12 12 * @static 13 13 * @package stubbles 14 * @subpackage util14 * @subpackage lang 15 15 */ 16 16 class stubRegistry … … 19 19 * config values 20 20 * 21 * @var array 21 * @var array<string,mixed> 22 22 */ 23 23 private static $config = array(); … … 25 25 * the registry data itsself 26 26 * 27 * @var array 27 * @var array<string,mixed> 28 28 */ 29 29 private static $registry = array(); 30 31 /**32 * constructor for this class33 */34 private final function __construct()35 {36 // nothing to do here37 }38 30 39 31 /** trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r1443 r1534 9 9 * @subpackage service_jsonrpc 10 10 */ 11 stubClassLoader::load('net::stubbles:: util::stubRegistry',11 stubClassLoader::load('net::stubbles::lang::stubRegistry', 12 12 'net::stubbles::websites::processors::stubAbstractProcessor' 13 13 ); trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcAbstractInvokingSubProcessor.php
r1361 r1534 10 10 */ 11 11 stubClassLoader::load('net::stubbles::ioc::stubBinder', 12 'net::stubbles::lang::stubRegistry', 12 13 'net::stubbles::reflection::reflection', 13 14 'net::stubbles::service::annotations::stubWebMethodAnnotation', 14 15 'net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcSubProcessor', 15 'net::stubbles::util::stubRegistry',16 16 'net::stubbles::util::validators::stubPassThruValidator' 17 17 ); trunk/src/main/php/net/stubbles/util/cache/stubFileCacheContainer.php
r1230 r1534 7 7 * @subpackage util_cache 8 8 */ 9 stubClassLoader::load('net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 10 'net::stubbles::util::cache::stubAbstractCacheContainer', 11 11 'net::stubbles::util::cache::stubCacheContainer' trunk/src/main/php/net/stubbles/util/log/stubLogDataFactory.php
r1301 r1534 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ioc::stubBinder', 10 'net::stubbles::lang::stubRegistry', 10 11 'net::stubbles::lang::exceptions::stubRuntimeException', 11 12 'net::stubbles::util::log::stubLogData', 12 'net::stubbles::util::log::stubLogger', 13 'net::stubbles::util::stubRegistry' 13 'net::stubbles::util::log::stubLogger' 14 14 ); 15 15 /** trunk/src/main/php/net/stubbles/util/stubRegistryXJConfInitializer.php
r1399 r1534 7 7 * @subpackage util 8 8 */ 9 stubClassLoader::load('net::stubbles::lang:: exceptions::stubIllegalArgumentException',10 'net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubIllegalArgumentException', 11 11 'net::stubbles::util::stubRegistryInitializer', 12 12 'net::stubbles::util::xjconf::xjconf' trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php
r1515 r1534 7 7 * @subpackage websites_memphis 8 8 */ 9 stubClassLoader::load('net::stubbles::lang:: exceptions::stubFileNotFoundException',10 'net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubFileNotFoundException', 11 11 'net::stubbles::websites::memphis::stubMemphisPageElement', 12 12 'net::stubbles::websites::memphis::stubMemphisTemplate' trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php
r1511 r1534 7 7 * @subpackage websites_memphis 8 8 */ 9 stubClassLoader::load('net::stubbles::lang::exceptions::stubFileNotFoundException', 9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubFileNotFoundException', 10 11 'net::stubbles::lang::exceptions::stubRuntimeException', 11 'net::stubbles::util::stubRegistry',12 12 'net::stubbles::websites::memphis::stubMemphisPageElement', 13 13 'net::stubbles::websites::memphis::stubMemphisTemplate' trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisPatTemplate.php
r1512 r1534 7 7 * @subpackage websites_memphis 8 8 */ 9 stubClassLoader::load('net::stubbles::lang:: exceptions::stubIllegalAccessException',10 'net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubIllegalAccessException', 11 11 'net::stubbles::websites::memphis::stubMemphisTemplate' 12 12 ); trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r1513 r1534 11 11 'net::stubbles::ipo::request::filters::stubStringFilter', 12 12 'net::stubbles::lang::stubMode', 13 'net::stubbles:: util::stubRegistry',13 'net::stubbles::lang::stubRegistry', 14 14 'net::stubbles::util::validators::stubPreSelectValidator', 15 15 'net::stubbles::websites::cache::stubCachableProcessor', trunk/src/main/php/net/stubbles/websites/rasmus/stubRasmusProcessor.php
r1507 r1534 7 7 * @subpackage websites_rasmus 8 8 */ 9 stubClassLoader::load('net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 10 'net::stubbles::util::validators::stubRegexValidator', 11 11 'net::stubbles::websites::processors::stubAbstractProcessor' trunk/src/main/php/net/stubbles/websites/stubFrontController.php
r1533 r1534 10 10 'net::stubbles::ipo::response::stubBaseResponse', 11 11 'net::stubbles::ipo::session::stubSession', 12 'net::stubbles:: util::stubRegistry',12 'net::stubbles::lang::stubRegistry', 13 13 'net::stubbles::websites::stubWebsiteInitializer', 14 14 'net::stubbles::websites::cache::stubWebsiteCacheFactory' trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php
r1513 r1534 7 7 * @subpackage websites 8 8 */ 9 stubClassLoader::load('net::stubbles::lang:: exceptions::stubConfigurationException',10 'net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubConfigurationException', 11 11 'net::stubbles::util::xjconf::xjconf', 12 12 'net::stubbles::websites::stubAbstractPageFactory' trunk/src/main/php/net/stubbles/websites/variantmanager/stubVariantsPreInterceptor.php
r1455 r1534 11 11 'net::stubbles::ipo::session::stubSession', 12 12 'net::stubbles::ipo::response::stubResponse', 13 'net::stubbles:: util::stubRegistry',13 'net::stubbles::lang::stubRegistry', 14 14 'net::stubbles::util::validators::stubPreSelectValidator' 15 15 ); trunk/src/main/php/net/stubbles/websites/xml/generator/stubModeXMLGenerator.php
r1520 r1534 7 7 * @subpackage websites_xml_generator 8 8 */ 9 stubClassLoader::load('net::stubbles::ipo::request::stubRequest', 10 'net::stubbles::ipo::session::stubSession', 11 'net::stubbles::util::stubRegistry', 9 stubClassLoader::load('net::stubbles::lang::stubMode', 12 10 'net::stubbles::websites::xml::generator::stubXMLGenerator' 13 11 ); trunk/src/main/php/net/stubbles/websites/xml/generator/stubSessionXMLGenerator.php
r1433 r1534 9 9 stubClassLoader::load('net::stubbles::ipo::request::stubRequest', 10 10 'net::stubbles::ipo::session::stubSession', 11 'net::stubbles:: util::stubRegistry',11 'net::stubbles::lang::stubRegistry', 12 12 'net::stubbles::websites::xml::generator::stubXMLGenerator' 13 13 ); trunk/src/main/php/net/stubbles/websites/xml/skin/stubDefaultSkinGenerator.php
r1513 r1534 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ioc::stubBinder', 10 'net::stubbles::lang::stubRegistry', 10 11 'net::stubbles::lang::exceptions::stubRuntimeException', 11 12 'net::stubbles::util::stubFactory', 12 'net::stubbles::util::stubRegistry',13 13 'net::stubbles::websites::xml::skin::stubSkinGenerator', 14 14 'net::stubbles::xml::stubXMLXIncludeStreamWrapper', trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php
r1520 r1534 9 9 */ 10 10 stubClassLoader::load('net::stubbles::ioc::stubBinder', 11 'net::stubbles::lang::stubRegistry', 11 12 'net::stubbles::lang::exceptions::stubRuntimeException', 12 'net::stubbles::util::stubRegistry',13 13 'net::stubbles::websites::cache::stubCachableProcessor', 14 14 'net::stubbles::websites::processors::stubAbstractProcessor', trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php
r1301 r1534 7 7 * @subpackage xml 8 8 */ 9 stubClassLoader::load('net::stubbles::lang:: exceptions::stubIOException',10 'net::stubbles:: util::stubRegistry',9 stubClassLoader::load('net::stubbles::lang::stubRegistry', 10 'net::stubbles::lang::exceptions::stubIOException', 11 11 'net::stubbles::xml::stubXMLException', 12 12 'net::stubbles::xml::xsl::stubXSLProcessor' trunk/src/main/php/org/stubbles/phing/tasks/stubCheckInitializersTask.php
r1516 r1534 56 56 { 57 57 stubClassLoader::load('net::stubbles::reflection::stubReflectionClass'); 58 stubClassLoader::load('net::stubbles:: util::stubRegistry');58 stubClassLoader::load('net::stubbles::lang::stubRegistry'); 59 59 stubClassLoader::load('net::stubbles::websites::memphis::stubMemphisTemplate'); 60 60 stubRegistry::setConfig(stubMemphisTemplate::REGISTRY_KEY_DIR, stubConfig::getPagePath() . '/../src/test/resources'); trunk/src/main/resources/xjconf/config.xml
r1219 r1534 1 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 2 <defines> 3 <namespace uri="http://stubbles.net/ util/registry">4 <tag name="config" type="net::stubbles::util::stubRegistry">5 <factoryMethod name="setConfig">6 <attribute name="name" type="string" />7 <attribute name="value" type="string" />8 </factoryMethod>9 </tag>3 <namespace uri="http://stubbles.net/lang/registry"> 4 <tag name="config" type="net::stubbles::lang::stubRegistry"> 5 <factoryMethod name="setConfig"> 6 <attribute name="name" type="string" /> 7 <attribute name="value" type="string" /> 8 </factoryMethod> 9 </tag> 10 10 </namespace> 11 11 </defines> trunk/src/test/php/net/stubbles/lang/stubRegistryTestCase.php
r1288 r1534 1 1 <?php 2 2 /** 3 * Tests for net::stubbles:: util::stubRegistry.3 * Tests for net::stubbles::lang::stubRegistry. 4 4 * 5 * @author Frank Kleine < frank@kl-s.com>5 * @author Frank Kleine <mikey@stubbles.net> 6 6 * @package stubbles 7 * @subpackage util_test7 * @subpackage lang_test 8 8 */ 9 stubClassLoader::load('net::stubbles:: util::stubRegistry');9 stubClassLoader::load('net::stubbles::lang::stubRegistry'); 10 10 /** 11 * Tests for net::stubbles:: util::stubRegistry.11 * Tests for net::stubbles::lang::stubRegistry. 12 12 * 13 13 * @package stubbles 14 * @subpackage util_test14 * @subpackage lang_test 15 15 */ 16 16 class stubRegistryTestCase extends PHPUnit_Framework_TestCase trunk/src/test/php/net/stubbles/stubTestSuite.php
r1480 r1534 30 30 $suite->addTestFile($dir . '/lang/stubEnumTestCase.php'); 31 31 $suite->addTestFile($dir . '/lang/stubModeTestCase.php'); 32 $suite->addTestFile($dir . '/lang/stubRegistryTestCase.php'); 32 33 33 34 // error handler trunk/src/test/php/net/stubbles/util/UtilTestSuite.php
r1498 r1534 26 26 $suite->addTestFile($dir . '/BinfordTestCase.php'); 27 27 $suite->addTestFile($dir . '/stubGeneralInitializerTestCase.php'); 28 $suite->addTestFile($dir . '/stubRegistryTestCase.php');29 28 $suite->addTestFile($dir . '/stubRegistryXJConfInitializerTestCase.php'); 30 29 trunk/src/test/php/net/stubbles/util/xjconf/stubXJConfProxyTestCase.php
r1291 r1534 77 77 <xj:configuration 78 78 xmlns:xj=\"http://xjconf.net/XJConf\" 79 xmlns=\"http://stubbles.net/ util/registry\">79 xmlns=\"http://stubbles.net/lang/registry\"> 80 80 <config name=\"net.stubbles.mode\" value=\"test\" /> 81 81 </xj:configuration>"); … … 83 83 <xj:configuration 84 84 xmlns:xj=\"http://xjconf.net/XJConf\" 85 xmlns=\"http://stubbles.net/ util/registry\">85 xmlns=\"http://stubbles.net/lang/registry\"> 86 86 <config name=\"net.stubbles.mode\" value=\"test\" /> 87 87 </xj:configuration>"); … … 89 89 <xj:configuration 90 90 xmlns:xj=\"http://xjconf.net/XJConf\" 91 xmlns=\"http://stubbles.net/ util/registry\">91 xmlns=\"http://stubbles.net/lang/registry\"> 92 92 <config name=\"net.stubbles.mode\" value=\"test\" /> 93 93 </xj:configuration>");
