Changeset 564

Show
Ignore:
Timestamp:
04/19/07 18:36:08 (1 year ago)
Author:
mikey
Message:

load net.stubbles.reflection.annotations.parser.stubAnnotationStateParser only if annotation is not cached, saves loading of 10 classes if all annotations used in the current request are cached

Files:

Legend:

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

    r494 r564  
    99 */ 
    1010stubClassLoader::load('net.stubbles.reflection.annotations.stubAnnotation', 
    11                       'net.stubbles.reflection.annotations.stubAnnotationCache', 
    12                       'net.stubbles.reflection.annotations.parser.stubAnnotationStateParser' 
     11                      'net.stubbles.reflection.annotations.stubAnnotationCache' 
    1312); 
    1413/** 
     
    5958        if (isset(self::$annotations[$hash]) == false) { 
    6059            if (null == self::$parser) { 
     60                stubClassLoader::load('net.stubbles.reflection.annotations.parser.stubAnnotationStateParser'); 
    6161                self::$parser = new stubAnnotationStateParser(); 
    6262            }