1 | |
package org.naftulin.configmgr.parsers; |
2 | |
|
3 | |
import java.net.URL; |
4 | |
|
5 | |
import org.apache.log4j.PropertyConfigurator; |
6 | |
import org.naftulin.configmgr.ConfigurationType; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | 10 | public class Log4JPropertiesParserImpl extends AbstractLog4JParser { |
15 | |
private static final long serialVersionUID = 1L; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
void doCallLog4JConfigurator(final URL fileUrl) { |
21 | 20 | PropertyConfigurator.configure(fileUrl); |
22 | 20 | } |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
public String toString() { |
29 | 25 | return "Log4J properties parser"; |
30 | |
} |
31 | |
|
32 | |
protected ConfigurationType getConfigurationType() { |
33 | 20 | return ConfigurationType.LOG4J_PROPS; |
34 | |
} |
35 | |
} |