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 java.io.InputStream;
20  import java.io.Reader;
21  import java.net.URL;
22  import java.util.Properties;
23  
24  import javax.xml.parsers.FactoryConfigurationError;
25  
26  import org.apache.log4j.config.PropertySetter;
27  import org.apache.log4j.spi.LoggerRepository;
28  import org.w3c.dom.Element;
29  
30  /**
31   *
32   */
33  public class DOMConfigurator {
34  
35      public void doConfigure(final String filename, final LoggerRepository repository) {
36      }
37  
38      public void doConfigure(final URL url, final LoggerRepository repository) {
39      }
40  
41      public void doConfigure(final InputStream inputStream, final LoggerRepository repository)
42          throws FactoryConfigurationError {
43      }
44  
45      public void doConfigure(final Reader reader, final LoggerRepository repository)
46          throws FactoryConfigurationError {
47      }
48  
49      public void doConfigure(final Element element, final LoggerRepository repository) {
50      }
51  
52      public static void configure(final Element element) {
53      }
54  
55      public static void configureAndWatch(final String configFilename) {
56      }
57  
58      public static void configureAndWatch(final String configFilename, final long delay) {
59      }
60  
61      public static void configure(final String filename) throws FactoryConfigurationError {
62      }
63  
64      public static void configure(final URL url) throws FactoryConfigurationError {
65      }
66  
67      public static String subst(final String value, final Properties props) {
68          return value;
69      }
70  
71      public static void setParameter(final Element elem, final PropertySetter propSetter, final Properties props) {
72  
73      }
74  
75      public static Object parseElement(final Element element, final Properties props,
76                                        @SuppressWarnings("rawtypes") final Class expectedClass)
77          throws Exception {
78          return null;
79      }
80  }