Show
Ignore:
Timestamp:
01/16/08 15:32:28 (10 months ago)
Author:
mikey
Message:

replaced some overall used registry keys by class constants

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/log/stubLogDataFactory.php

    r1230 r1245  
    5252    public static function create($target, $level = stubLogger::LEVEL_INFO) 
    5353    { 
    54         $fqClassName = stubRegistry::getConfig('net.stubbles.util.log.class', 'net::stubbles::util::log::stubBaseLogData'); 
     54        $fqClassName = stubRegistry::getConfig(stubLogData::CLASS_REGISTRY_KEY, 'net::stubbles::util::log::stubBaseLogData'); 
    5555        $nqClassName = stubClassLoader::getNonQualifiedClassName($fqClassName); 
    5656        if (class_exists($nqClassName, false) === false) { 
     
    6060        $logData = new $nqClassName($target, $level); 
    6161        if (($logData instanceof stubLogData) === false) { 
    62             throw new stubRuntimeException('Configured net.stubbles.util.log.class is not an instance of net::stubbles::util::log::stubLogData.'); 
     62            throw new stubRuntimeException('Configured ' . stubLogData::CLASS_REGISTRY_KEY . ' is not an instance of net::stubbles::util::log::stubLogData.'); 
    6363        } 
    6464