KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > log > Log4jLogDeviceFactory


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13
14 package org.ejbca.core.model.log;
15
16 import java.util.Properties JavaDoc;
17
18
19 /**
20  * Factory for Log4j log device.
21  *
22  * @version $Id: Log4jLogDeviceFactory.java,v 1.1 2006/01/17 20:28:08 anatom Exp $
23  */

24 public class Log4jLogDeviceFactory {
25     /**
26      * Creates a new Log4jLogDeviceFactory object.
27      */

28     public Log4jLogDeviceFactory() {
29     }
30
31     /**
32      * Creates (if needed) the log device and returns the object.
33      *
34      * @param prop Arguments needed for the eventual creation of the object
35      *
36      * @return An instance of the log device.
37      */

38     public synchronized ILogDevice makeInstance(Properties JavaDoc prop)
39             throws Exception JavaDoc {
40         return Log4jLogDevice.instance(prop);
41     }
42 }
43
Popular Tags