Changeset 622

Show
Ignore:
Timestamp:
04/25/07 00:07:20 (1 year ago)
Author:
mikey
Message:

introduced bootstrap file for examples which enables working examples without a compiled version of stubbles

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/foreignClassLoaders/index.php

    r618 r622  
    44 
    55require '../../config/php/config.php'; 
    6 require stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php'; 
     6require '../bootstrap-stubbles.php'; 
    77stubClassLoader::load('net.stubbles.util.ext.stubXPClassLoader'); 
    88stubClassLoader::registerForeignClassLoader(new stubXPClassLoader()); 
  • trunk/examples/json-rpc/index.php

    r620 r622  
    6060 
    6161<fieldset> 
    62   <legend>Second JSON-RPC example</legend> 
     62  <legend>Simple JSON-RPC example</legend> 
    6363  A: <input type="text" id="a" size="3"/> B: <input type="text" id="b" size="3"/><br/> 
    6464  <input type="button" onclick="math.add(document.getElementById('a').value, document.getElementById('b').value);" value="A+B"/> 
  • trunk/examples/json-rpc/jsonrpc.php

    r600 r622  
    11<?php 
    22require '../../config/php/config.php'; 
    3 require '../../src/main/php/net/stubbles/stubClassLoader.php'; 
    4 require '../../lib/starReader.php'; 
    5  
     3require '../bootstrap-stubbles.php'; 
    64stubClassLoader::load('net.stubbles.websites.processors.stubJsonRpcProcessor', 
    75                      'net.stubbles.websites.stubFrontController', 
    86                      'net.stubbles.ipo.interceptors.stubInterceptorXJConfInitializer', 
    9                      'net.stubbles.websites.processors.stubProcessorResolverXJConfFactory', 
    10                      'net.stubbles.util.stubRegistryXJConfInitializer' 
     7                      'net.stubbles.websites.processors.stubProcessorResolverXJConfFactory', 
     8                      'net.stubbles.util.stubRegistryXJConfInitializer' 
    119); 
    1210 
     
    1412{ 
    1513    public static function main() 
    16     {    
    17        $controller = new stubFrontController(new stubRegistryXJConfInitializer(), 
    18                                              new stubInterceptorXJConfInitializer(), 
    19                                              new stubProcessorResolverXJConfFactory()); 
    20        $controller->process(); 
     14    { 
     15        $controller = new stubFrontController(new stubRegistryXJConfInitializer(), 
     16                                              new stubInterceptorXJConfInitializer(), 
     17                                              new stubProcessorResolverXJConfFactory()); 
     18        $controller->process(); 
    2119    } 
    2220}