View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements. See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache license, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License. You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the license for the specific language governing permissions and
15   * limitations under the license.
16   */
17  package org.apache.log4j.xml;
18  
19  import org.apache.log4j.config.PropertySetter;
20  import org.apache.log4j.spi.LoggerRepository;
21  import org.w3c.dom.Element;
22  
23  import javax.xml.parsers.FactoryConfigurationError;
24  import java.io.InputStream;
25  import java.io.Reader;
26  import java.net.URL;
27  import java.util.Properties;
28  
29  /**
30   *
31   */
32  public class DOMConfigurator {
33  
34      public static void configure(Element element) {
35      }
36  
37      public static void configureAndWatch(String configFilename) {
38      }
39  
40      public static void configureAndWatch(String configFilename, long delay) {
41      }
42  
43      public void doConfigure(final String filename, LoggerRepository repository) {
44      }
45  
46      public void doConfigure(final URL url, LoggerRepository repository) {
47      }
48  
49      public void doConfigure(final InputStream inputStream, LoggerRepository repository)
50          throws FactoryConfigurationError {
51      }
52  
53      public void doConfigure(final Reader reader, LoggerRepository repository)
54          throws FactoryConfigurationError {
55      }
56  
57      public void doConfigure(Element element, LoggerRepository repository) {
58      }
59  
60      public static void configure(String filename) throws FactoryConfigurationError {
61      }
62  
63      public static void configure(URL url) throws FactoryConfigurationError {
64      }
65  
66      public static String subst(final String value, final Properties props) {
67          return value;
68      }
69  
70      public static void setParameter(final Element elem, final PropertySetter propSetter, final Properties props) {
71  
72      }
73  
74      public static Object parseElement(final Element element,final Properties props, final Class expectedClass)
75          throws Exception {
76          return null;
77      }
78  }