Changeset 1197

Show
Ignore:
Timestamp:
12/29/07 14:22:43 (10 months ago)
Author:
mikey
Message:

qa: fixed a bunch of subpackage names

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/ioc/annotations/stubImplementedByAnnotation.php

    r844 r1197  
    11<?php 
    22/** 
    3  * Annotation to mark the default implementation 
    4  * of an interface 
     3 * Annotation to mark the default implementation of an interface. 
    54 * 
    65 * @author      Stephan Schmidt <schst@stubbles.net> 
    76 * @package     stubbles 
    8  * @subpackage  ioc_injection 
     7 * @subpackage  ioc_annotations 
    98 */ 
    10  
    119stubClassLoader::load('net.stubbles.reflection.annotations.stubAbstractAnnotation', 
    12                       'net.stubbles.reflection.stubReflectionClass'); 
    13  
     10                      'net.stubbles.reflection.stubReflectionClass' 
     11); 
    1412/** 
    15  * Annotation to mark the default implementation 
    16  * of an interface 
     13 * Annotation to mark the default implementation of an interface. 
    1714 * 
    1815 * @package     stubbles 
    19  * @subpackage  ioc_injection 
     16 * @subpackage  ioc_annotations 
    2017 */ 
    2118class stubImplementedByAnnotation extends stubAbstractAnnotation 
  • trunk/src/main/php/net/stubbles/ipo/session/resourcemanager/stubSessionResource.php

    r1127 r1197  
    33 * Base interface for all session resources. 
    44 * 
    5  * All interfaces must be serializable as they will 
    6  * be stored in the session. 
    7  * 
    85 * @author      Stephan Schmidt <schst@stubbles.net> 
    96 * @package     stubbles 
    10  * @subpackage  ipo_resourcemanager 
     7 * @subpackage  ipo_session_resourcemanager 
     8 */ 
     9/** 
     10 * Base interface for all session resources. 
     11 * 
     12 * All interfaces must be serializable as they will be stored in the session. 
     13 * 
     14 * @package     stubbles 
     15 * @subpackage  ipo_session_resourcemanager 
    1116 */ 
    1217interface stubSessionResource extends stubSerializable 
  • trunk/src/main/php/net/stubbles/ipo/session/resourcemanager/stubSessionResourceManager.php

    r1177 r1197  
    33 * Class to manage session resources. 
    44 * 
    5  * This class is inspired by the ContextResourceManager 
    6  * of the Pustefix framework 
    7  * 
    85 * @author      Stephan Schmidt <schst@stubbles.net> 
    96 * @package     stubbles 
    10  * @subpackage  ipo_resourcemanager 
    11  * @link        http://pustefix.oss.schlund.de 
     7 * @subpackage  ipo_session_resourcemanager 
    128 */ 
    139stubClassLoader::load('net.stubbles.ipo.session.resourcemanager.stubSessionResource', 
     
    1915 * Class to manage session resources. 
    2016 * 
    21  * This class is inspired by the ContextResourceManager 
    22  * of the Pustefix framework 
     17 * This class is inspired by the ContextResourceManager of the Pustefix 
     18 * framework. 
    2319 * 
    24  * @author      Stephan Schmidt <schst@stubbles.net> 
    2520 * @package     stubbles 
    26  * @subpackage  ipo_resourcemanager 
     21 * @subpackage  ipo_session_resourcemanager 
     22 * @link        http://pustefix.oss.schlund.de 
    2723 */ 
    2824class stubSessionResourceManager extends stubSerializableObject implements stubInjectionProvider 
    2925{ 
    3026    /** 
    31      * All available interfaces and the matching 
    32      * implementations 
     27     * all available interfaces and the matching implementations 
    3328     * 
    3429     * @var array<string,string> 
     
    3631    protected $resourceDefinitions = array(); 
    3732    /** 
    38      * All resources 
     33     * all resources 
    3934     * 
    4035     * @var array<string,object> 
    4136     */ 
    42     protected $resources = array(); 
    43     /** 
    44      * Session of the request 
     37    protected $resources           = array(); 
     38    /** 
     39     * session of the request 
    4540     * 
    4641     * @var stubSession 
     
    4843    protected $session; 
    4944 
     45    /** 
     46     * constructor 
     47     * 
     48     * @param  stubSession  $session 
     49     */ 
    5050    public function __construct(stubSession $session) 
    5151    { 
     
    5454 
    5555    /** 
    56      * Add a new resource definition. 
     56     * adds a new resource definition 
    5757     * 
    5858     * @param  string         $class 
     
    6767 
    6868    /** 
    69      * Get a resource for a specifiec type. 
    70      * 
    71      * This is required by the stubInjectionProvider interface. 
     69     * returns a resource for a specifiec type 
    7270     * 
    7371     * As PHP has no namespace, this only works, as long as there 
     
    7573     * 
    7674     * @param  stubBaseReflectionClass  $type 
     75     * @see    net::stubbles::ioc::stubInjectionProvider::get() 
    7776     */ 
    7877    public function get(stubBaseReflectionClass $type) 
     
    8988 
    9089    /** 
    91      * Get a resource. 
     90     * returns a resource 
    9291     * 
    9392     * If a resource is not available in the session, 
     
    101100        $interface      = $this->getFullQualifiedInterfaceName($interface); 
    102101        $implementation = $this->getImplementation($interface); 
    103  
    104102        if (isset($this->resources[$implementation]) === true) { 
    105103            return $this->resources[$implementation]; 
     
    115113        $interfaceClazz = new stubReflectionClass($interface); 
    116114        $shortInterfaceName = $interfaceClazz->getName(); 
    117         if (!$this->resources[$implementation] instanceof $shortInterfaceName) { 
     115        if (($this->resources[$implementation] instanceof $shortInterfaceName) === false) { 
    118116            throw new stubConfigurationException("{$implementation} does not implement interface {$interface}."); 
    119117        } 
     
    124122 
    125123    /** 
    126      * Get the full qualified name of an interface. 
     124     * returns the full qualified name of an interface 
    127125     * 
    128126     * This method converts an instance of stubReflectionClass 
     
    147145            return $interface; 
    148146        } 
     147         
    149148        if ($interface instanceof stubReflectionClass) { 
    150149            if ($interface->isInterface() === false) { 
     
    163162 
    164163    /** 
    165      * Check, whether a resource is registered with the 
    166      * resource manager. 
     164     * checks whether a resource is registered in the resource manager 
    167165     * 
    168166     * @param   string|stubReflectionClass  $interface 
     
    176174 
    177175    /** 
    178      * Get the concrete implementation for an interface. 
     176     * returns the concrete implementation for an interface 
    179177     * 
    180178     * @param   string  $interface 
     
    192190 
    193191    /** 
    194      * Create a session resource 
     192     * creates a session resource 
    195193     * 
    196194     * @param   string               $implementation 
     
    204202 
    205203    /** 
    206      * Register all session resources with the binder. 
     204     * registers all session resources with the binder 
    207205     * 
    208206     * @param  stubBinder  $binder 
  • trunk/src/main/php/net/stubbles/ipo/session/resourcemanager/stubSessionResourceManagerPreInterceptor.php

    r909 r1197  
    22/** 
    33 * Interceptor to initialize the stubResourceManager. 
     4 * 
     5 * @author      Stephan Schmidt <schst@stubbles.net> 
     6 * @author      Frank Kleine <mikey@stubbles.net> 
     7 * @package     stubbles 
     8 * @subpackage  ipo_session_resourcemanager 
     9 */ 
     10stubClassLoader::load('net.stubbles.ipo.interceptors.stubPreInterceptor', 
     11                      'net.stubbles.ipo.session.resourcemanager.stubSessionResourceManager', 
     12                      'net.stubbles.util.stubXJConfAbstractInitializer' 
     13); 
     14/** 
     15 * Interceptor to initialize the stubRessourceManager. 
    416 * 
    517 * If the registry contains a net.stubbles.ioc.stubBinder, the 
     
    719 * all resources. 
    820 * 
    9  * @author      Stephan Schmidt <schst@stubbles.net> 
    10  * @author      Frank Kleine <mikey@stubbles.net> 
    1121 * @package     stubbles 
    12  * @subpackage  ipo_resourcemanager 
    13  */ 
    14 stubClassLoader::load('net.stubbles.ipo.interceptors.stubPreInterceptor', 
    15                       'net.stubbles.ipo.session.resourcemanager.stubSessionResourceManager', 
    16                       'net.stubbles.util.stubXJConfAbstractInitializer'); 
    17 /** 
    18  * Interceptor to initialize the stubRessourceManager 
    19  * 
    20  * @package     stubbles 
    21  * @subpackage  ipo_resourcemanager 
     22 * @subpackage  ipo_session_resourcemanager 
    2223 */ 
    2324class stubSessionResourceManagerPreInterceptor extends stubXJConfAbstractInitializer implements stubXJConfInitializer, stubPreInterceptor 
    2425{ 
    2526    /** 
    26      * All configured resources as read from session-resources.xml 
     27     * all configured resources as read from session-resources.xml 
    2728     * 
    2829     * @var array<string,array<string>> 
     
    6263    public function loadData(stubXJConfFacade $xjconf) 
    6364    { 
    64         $this->resourceConfig = $xjconf->getConfigValue('resources'); 
     65        $this->resourceConfig = $xjconf->getConfigValue('resources'); 
    6566    } 
    6667 
  • trunk/src/main/php/net/stubbles/websites/stubPageConfigurationException.php

    r777 r1197  
    55 * @author      Frank Kleine <mikey@stubbles.net> 
    66 * @package     stubbles 
    7  * @subpackage  websites_pages 
     7 * @subpackage  websites 
    88 */ 
    99stubClassLoader::load('net.stubbles.lang.exceptions.stubChainedException'); 
     
    1212 *  
    1313 * @package     stubbles 
    14  * @subpackage  websites_pages 
     14 * @subpackage  websites 
    1515 */ 
    1616class stubPageConfigurationException extends stubChainedException