Changeset 1234
- Timestamp:
- 01/13/08 13:21:37 (7 months ago)
- Files:
-
- trunk/examples/config/xml/json-rpc-service.xml (modified) (1 diff)
- trunk/examples/docroot/core/error-simple.php (modified) (1 diff)
- trunk/examples/docroot/core/exception.php (modified) (1 diff)
- trunk/examples/docroot/events/index.php (modified) (1 diff)
- trunk/examples/docroot/events/queue.php (modified) (1 diff)
- trunk/examples/docroot/foreignClassLoaders/index.php (modified) (1 diff)
- trunk/examples/docroot/ipc07/csvWriter.php (modified) (1 diff)
- trunk/examples/docroot/ipc07/xmlSerializer.php (modified) (1 diff)
- trunk/examples/docroot/ipc2007-ioc/ioc.php (modified) (1 diff)
- trunk/examples/docroot/ipc2007-ioc/xjconf.php (modified) (1 diff)
- trunk/examples/docroot/json-rpc/index.php (modified) (1 diff)
- trunk/examples/docroot/json-rpc/jsonrpc.php (modified) (1 diff)
- trunk/examples/docroot/logging/index.php (modified) (3 diffs)
- trunk/examples/docroot/reflection/annotations.php (modified) (1 diff)
- trunk/examples/docroot/reflection/complex.php (modified) (1 diff)
- trunk/examples/docroot/request/broker.php (modified) (1 diff)
- trunk/examples/docroot/variants/variants.php (modified) (1 diff)
- trunk/examples/docroot/websites-memphis/index.php (modified) (1 diff)
- trunk/examples/docroot/websites-xml/index.php (modified) (1 diff)
- trunk/examples/docroot/xml/serializer.php (modified) (1 diff)
- trunk/examples/docroot/xml/streamWriter.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/ipo/session/resourcemanager/stubSessionResourceManager.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/util/ext/stubPearClassLoader.php (modified) (2 diffs)
- trunk/src/main/php/org/stubbles/examples/pageelements/Shop.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/config/xml/json-rpc-service.xml
r1219 r1234 3 3 xmlns:xj="http://xjconf.net/XJConf" 4 4 xmlns="http://stubbles.net/service/json-rpc"> 5 <service-url>http://localhost/?processor=jsonrpc</service-url>6 5 <services> 7 6 <service name="MathService" className="org::stubbles::examples::service::MathService"/> trunk/examples/docroot/core/error-simple.php
r1093 r1234 13 13 14 14 require '../bootstrap-stubbles.php'; 15 stubClassLoader::load('net .stubbles.lang.errorhandler.stubIllegalArgumentErrorHandler',16 'net .stubbles.lang.errorhandler.stubCompositeErrorHandler',17 'net .stubbles.ipo.response.stubBaseResponse'15 stubClassLoader::load('net::stubbles::lang::errorhandler::stubIllegalArgumentErrorHandler', 16 'net::stubbles::lang::errorhandler::stubCompositeErrorHandler', 17 'net::stubbles::ipo::response::stubBaseResponse' 18 18 ); 19 19 class Bootstrap trunk/examples/docroot/core/exception.php
r1093 r1234 1 1 <?php 2 2 require '../bootstrap-stubbles.php'; 3 stubClassLoader::load('net .stubbles.lang.errorhandler.stubProdModeExceptionHandler',4 'net .stubbles.lang.errorhandler.stubDisplayExceptionHandler',5 'net .stubbles.util.stubRegistry'3 stubClassLoader::load('net::stubbles::lang::errorhandler::stubProdModeExceptionHandler', 4 'net::stubbles::lang::errorhandler::stubDisplayExceptionHandler', 5 'net::stubbles::util::stubRegistry' 6 6 ); 7 7 class Bootstrap trunk/examples/docroot/events/index.php
r1156 r1234 4 4 5 5 require '../bootstrap-stubbles.php'; 6 stubClassLoader::load('net .stubbles.events.events',7 'org .stubbles.examples.events.Auth',8 'org .stubbles.examples.events.BlackList',9 'org .stubbles.examples.events.UserLoginLogging'6 stubClassLoader::load('net::stubbles::events::events', 7 'org::stubbles::examples::events::Auth', 8 'org::stubbles::examples::events::BlackList', 9 'org::stubbles::examples::events::UserLoginLogging' 10 10 ); 11 11 class Bootstrap trunk/examples/docroot/events/queue.php
r778 r1234 3 3 highlight_file(__FILE__); 4 4 require '../bootstrap-stubbles.php'; 5 stubClassLoader::load('net .stubbles.events.events',6 'net .stubbles.ipo.request.stubWebRequest'5 stubClassLoader::load('net::stubbles::events::events', 6 'net::stubbles::ipo::request::stubWebRequest' 7 7 ); 8 8 class ExampleListener extends stubBaseObject implements stubEventListener trunk/examples/docroot/foreignClassLoaders/index.php
r681 r1234 4 4 5 5 require '../bootstrap-stubbles.php'; 6 stubClassLoader::load('net .stubbles.util.ext.stubXPClassLoader');6 stubClassLoader::load('net::stubbles::util::ext::stubXPClassLoader'); 7 7 stubClassLoader::registerForeignClassLoader(new stubXPClassLoader()); 8 stubClassLoader::load('net .xp_framework.text.String');9 stubClassLoader::load('net .stubbles.util.ext.stubPearClassLoader');8 stubClassLoader::load('net::xp_framework::text::String'); 9 stubClassLoader::load('net::stubbles::util::ext::stubPearClassLoader'); 10 10 stubClassLoader::registerForeignClassLoader(new stubPearClassLoader()); 11 stubClassLoader::load('net .php.pear.XML.Serializer');11 stubClassLoader::load('net::php::pear::XML::Serializer'); 12 12 class Bootstrap 13 13 { trunk/examples/docroot/ipc07/csvWriter.php
r681 r1234 8 8 */ 9 9 require '../bootstrap-stubbles.php'; 10 stubClassLoader::load('net .stubbles.reflection.reflection');10 stubClassLoader::load('net::stubbles::reflection::reflection'); 11 11 12 12 class stubCSVAnnotation extends stubAbstractAnnotation implements stubAnnotation { trunk/examples/docroot/ipc07/xmlSerializer.php
r681 r1234 8 8 */ 9 9 require '../bootstrap-stubbles.php'; 10 stubClassLoader::load('net .stubbles.xml.serializer.stubXMLSerializer',11 'net .stubbles.xml.stubXMLStreamWriterFactory');10 stubClassLoader::load('net::stubbles::xml::serializer::stubXMLSerializer', 11 'net::stubbles::xml::stubXMLStreamWriterFactory'); 12 12 13 13 class PersonPlain { trunk/examples/docroot/ipc2007-ioc/ioc.php
r999 r1234 1 1 <?php 2 2 require '../bootstrap-stubbles.php'; 3 stubClassLoader::load('net .stubbles.ioc.ioc');3 stubClassLoader::load('net::stubbles::ioc::ioc'); 4 4 5 5 require 'interfaces.php'; trunk/examples/docroot/ipc2007-ioc/xjconf.php
r1000 r1234 1 1 <?php 2 2 require '../bootstrap-stubbles.php'; 3 stubClassLoader::load('net .stubbles.util.xjconf.xjconf');4 stubClassLoader::load('net .stubbles.util.xjconf.xjconfReal');3 stubClassLoader::load('net::stubbles::util::xjconf::xjconf'); 4 stubClassLoader::load('net::stubbles::util::xjconf::xjconfReal'); 5 5 6 6 require 'interfaces.php'; trunk/examples/docroot/json-rpc/index.php
r921 r1234 15 15 require '../bootstrap-stubbles.php'; 16 16 17 stubClassLoader::load('net .stubbles.ipo.request.stubWebRequest',18 'net .stubbles.ipo.session.stubPHPSession');17 stubClassLoader::load('net::stubbles::ipo::request::stubWebRequest', 18 'net::stubbles::ipo::session::stubPHPSession'); 19 19 20 20 $request = new stubWebRequest(); trunk/examples/docroot/json-rpc/jsonrpc.php
r792 r1234 1 1 <?php 2 2 require '../bootstrap-stubbles.php'; 3 stubClassLoader::load('net .stubbles.service.jsonrpc.stubJsonRpcProcessor',4 'net .stubbles.websites.stubFrontController',5 'net .stubbles.ipo.interceptors.stubInterceptorXJConfInitializer',6 'net .stubbles.websites.processors.stubProcessorResolverXJConfFactory',7 'net .stubbles.util.stubRegistryXJConfInitializer'3 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpcProcessor', 4 'net::stubbles::websites::stubFrontController', 5 'net::stubbles::ipo::interceptors::stubInterceptorXJConfInitializer', 6 'net::stubbles::websites::processors::stubProcessorResolverXJConfFactory', 7 'net::stubbles::util::stubRegistryXJConfInitializer' 8 8 ); 9 9 trunk/examples/docroot/logging/index.php
r681 r1234 4 4 5 5 require '../bootstrap-stubbles.php'; 6 stubClassLoader::load('net .stubbles.ipo.request.stubWebRequest',7 'net .stubbles.ipo.session.stubPHPSession',8 'net .stubbles.util.log.log',9 'net .stubbles.util.log.stubLoggerXJConfFactory');6 stubClassLoader::load('net::stubbles::ipo::request::stubWebRequest', 7 'net::stubbles::ipo::session::stubPHPSession', 8 'net::stubbles::util::log::log', 9 'net::stubbles::util::log::stubLoggerXJConfFactory'); 10 10 class Bootstrap 11 11 { … … 19 19 $loggerXJConfFactory->init(); 20 20 21 // both request and session normally are put into your application22 // classes e.g. via stub(Pre|Post)Interceptor::(pre|post)process()23 // or via stubPageElement::(isAvailable|process)()24 $request = new stubWebRequest();25 $session = new stubPHPSession($request, 'SID');26 27 21 // now the real work for logging 28 22 // first we create a new logdata object with target trail and level … … 32 26 // if property not set an instance of 33 27 // net.stubbles.util.log.stubBaseLogData will be created 34 $logData = stubLogDataFactory::create( $session,'trail', stubLogger::LEVEL_INFO);28 $logData = stubLogDataFactory::create('trail', stubLogger::LEVEL_INFO); 35 29 36 30 // we add some more data that we want to log trunk/examples/docroot/reflection/annotations.php
r724 r1234 12 12 13 13 // load the complete reflection package 14 stubClassLoader::load('net .stubbles.reflection.reflection');14 stubClassLoader::load('net::stubbles::reflection::reflection'); 15 15 16 16 /** trunk/examples/docroot/reflection/complex.php
r716 r1234 3 3 require '../bootstrap-stubbles.php'; 4 4 5 stubClassLoader::load('net .stubbles.reflection.reflection');5 stubClassLoader::load('net::stubbles::reflection::reflection'); 6 6 7 7 class Base extends stubBaseObject { trunk/examples/docroot/request/broker.php
r965 r1234 10 10 require '../bootstrap-stubbles.php'; 11 11 12 stubClassLoader::load('net .stubbles.ipo.request.stubWebRequest',13 'net .stubbles.ipo.request.broker.stubRequestBroker',14 'net .stubbles.ipo.request.filters.stubHtmlOutputFilter'12 stubClassLoader::load('net::stubbles::ipo::request::stubWebRequest', 13 'net::stubbles::ipo::request::broker::stubRequestBroker', 14 'net::stubbles::ipo::request::filters::stubHtmlOutputFilter' 15 15 ); 16 16 /** trunk/examples/docroot/variants/variants.php
r681 r1234 9 9 require '../bootstrap-stubbles.php'; 10 10 11 stubClassLoader::load('net .stubbles.websites.variantmanager.stubVariantXJConfFactory',12 'net .stubbles.ipo.request.stubWebRequest',13 'net .stubbles.ipo.session.stubPHPSession'11 stubClassLoader::load('net::stubbles::websites::variantmanager::stubVariantXJConfFactory', 12 'net::stubbles::ipo::request::stubWebRequest', 13 'net::stubbles::ipo::session::stubPHPSession' 14 14 ); 15 15 class Bootstrap trunk/examples/docroot/websites-memphis/index.php
r693 r1234 13 13 require '../bootstrap-stubbles.php'; 14 14 15 stubClassLoader::load('net .stubbles.websites.stubFrontController',16 'net .stubbles.ipo.interceptors.stubInterceptorXJConfInitializer',17 'net .stubbles.websites.processors.stubProcessorResolverXJConfFactory',18 'net .stubbles.util.stubRegistryXJConfInitializer'15 stubClassLoader::load('net::stubbles::websites::stubFrontController', 16 'net::stubbles::ipo::interceptors::stubInterceptorXJConfInitializer', 17 'net::stubbles::websites::processors::stubProcessorResolverXJConfFactory', 18 'net::stubbles::util::stubRegistryXJConfInitializer' 19 19 ); 20 20 trunk/examples/docroot/websites-xml/index.php
r705 r1234 13 13 require '../bootstrap-stubbles.php'; 14 14 15 stubClassLoader::load('net .stubbles.websites.stubFrontController',16 'net .stubbles.ipo.interceptors.stubInterceptorXJConfInitializer',17 'net .stubbles.websites.processors.stubProcessorResolverXJConfFactory',18 'net .stubbles.util.stubRegistryXJConfInitializer'15 stubClassLoader::load('net::stubbles::websites::stubFrontController', 16 'net::stubbles::ipo::interceptors::stubInterceptorXJConfInitializer', 17 'net::stubbles::websites::processors::stubProcessorResolverXJConfFactory', 18 'net::stubbles::util::stubRegistryXJConfInitializer' 19 19 ); 20 20 trunk/examples/docroot/xml/serializer.php
r681 r1234 8 8 */ 9 9 require '../bootstrap-stubbles.php'; 10 stubClassLoader::load('net .stubbles.xml.serializer.stubXMLSerializer',11 'net .stubbles.xml.stubXMLStreamWriterFactory');10 stubClassLoader::load('net::stubbles::xml::serializer::stubXMLSerializer', 11 'net::stubbles::xml::stubXMLStreamWriterFactory'); 12 12 13 13 /** trunk/examples/docroot/xml/streamWriter.php
r681 r1234 9 9 */ 10 10 require '../bootstrap-stubbles.php'; 11 stubClassLoader::load('net .stubbles.xml.stubXMLStreamWriterFactory');11 stubClassLoader::load('net::stubbles::xml::stubXMLStreamWriterFactory'); 12 12 13 13 // get a stubXMLStreamWriter instance regardless of the implementation trunk/src/main/php/net/stubbles/ipo/session/resourcemanager/stubSessionResourceManager.php
r1223 r1234 79 79 $typeName = $type->getName(); 80 80 foreach (array_keys($this->resourceDefinitions) as $interface) { 81 $localName = s ubstr($interface, strrpos($interface, '.')+1);81 $localName = stubClassLoader::getNonQualifiedClassName($interface); 82 82 if ($localName === $typeName) { 83 83 return $this->getResource($interface); … … 209 209 { 210 210 foreach (array_keys($this->resourceDefinitions) as $interface) { 211 $localName = s ubstr($interface, strrpos($interface, '.') + 1);211 $localName = stubClassLoader::getNonQualifiedClassName($interface); 212 212 $binder->bind($localName)->toProvider($this); 213 213 } trunk/src/main/php/net/stubbles/util/ext/stubPearClassLoader.php
r448 r1234 21 21 * @var string 22 22 */ 23 protected $namespace = 'net .php.pear';23 protected $namespace = 'net::php::pear'; 24 24 25 25 /** … … 56 56 } 57 57 58 require str_replace(' .', DIRECTORY_SEPARATOR, str_replace($this->namespace . '.', '', $fqClassName)) . '.php';58 require str_replace('::', DIRECTORY_SEPARATOR, str_replace($this->namespace . '::', '', $fqClassName)) . '.php'; 59 59 } 60 60 } trunk/src/main/php/org/stubbles/examples/pageelements/Shop.php
r1221 r1234 155 155 * 156 156 * @return string 157 * @DBColumn(name='status', defaultValue= Analyzable::STATUS_ENABLED)157 * @DBColumn(name='status', defaultValue=5) 158 158 * @XMLAttribute(attributeName='status'); 159 159 */
