|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ExcaliburLogKitLoggerStoreFactory.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Copyright (C) The Spice Group. All rights reserved.
|
|
| 3 |
*
|
|
| 4 |
* This software is published under the terms of the Spice
|
|
| 5 |
* Software License version 1.1, a copy of which has been included
|
|
| 6 |
* with this distribution in the LICENSE.txt file.
|
|
| 7 |
*/
|
|
| 8 |
package org.codehaus.spice.loggerstore.factories;
|
|
| 9 |
|
|
| 10 |
import java.util.Map;
|
|
| 11 |
import org.apache.avalon.excalibur.logger.LogKitLoggerManager;
|
|
| 12 |
import org.apache.avalon.excalibur.logger.LoggerManager;
|
|
| 13 |
import org.codehaus.spice.loggerstore.LoggerStore;
|
|
| 14 |
|
|
| 15 |
/**
|
|
| 16 |
* ExcaliburLogKitLoggerStoreFactory specialises the LogKitLoggerStoreFactory to
|
|
| 17 |
* use the Excalibur LogKitLoggerManager.
|
|
| 18 |
*
|
|
| 19 |
* @author <a href="mailto:mauro.talevi at aquilonia.org">Mauro Talevi</a>
|
|
| 20 |
*/
|
|
| 21 |
public class ExcaliburLogKitLoggerStoreFactory |
|
| 22 |
extends LogKitLoggerStoreFactory
|
|
| 23 |
{
|
|
| 24 |
/**
|
|
| 25 |
* Creates a LoggerStore from a given set of configuration parameters.
|
|
| 26 |
*
|
|
| 27 |
* @param config the Map of parameters for the configuration of the store
|
|
| 28 |
* @return the LoggerStore
|
|
| 29 |
* @throws Exception if unable to create the LoggerStore
|
|
| 30 |
*/
|
|
| 31 | 13 |
protected LoggerStore doCreateLoggerStore( final Map config )
|
| 32 |
throws Exception
|
|
| 33 |
{
|
|
| 34 | 13 |
final LoggerManager loggerManager = new LogKitLoggerManager();
|
| 35 | 13 |
config.put( LoggerManager.class.getName(), loggerManager );
|
| 36 | 13 |
return super.doCreateLoggerStore( config ); |
| 37 |
} |
|
| 38 |
} |
|
| 39 |
|
|
||||||||||