001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache license, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the license for the specific language governing permissions and
015 * limitations under the license.
016 */
017 package org.apache.log4j.xml;
018
019 import java.io.InputStream;
020 import java.io.Reader;
021 import java.net.URL;
022 import java.util.Properties;
023
024 import javax.xml.parsers.FactoryConfigurationError;
025
026 import org.apache.log4j.config.PropertySetter;
027 import org.apache.log4j.spi.LoggerRepository;
028 import org.w3c.dom.Element;
029
030 /**
031 *
032 */
033 public class DOMConfigurator {
034
035 public void doConfigure(final String filename, final LoggerRepository repository) {
036 }
037
038 public void doConfigure(final URL url, final LoggerRepository repository) {
039 }
040
041 public void doConfigure(final InputStream inputStream, final LoggerRepository repository)
042 throws FactoryConfigurationError {
043 }
044
045 public void doConfigure(final Reader reader, final LoggerRepository repository)
046 throws FactoryConfigurationError {
047 }
048
049 public void doConfigure(final Element element, final LoggerRepository repository) {
050 }
051
052 public static void configure(final Element element) {
053 }
054
055 public static void configureAndWatch(final String configFilename) {
056 }
057
058 public static void configureAndWatch(final String configFilename, final long delay) {
059 }
060
061 public static void configure(final String filename) throws FactoryConfigurationError {
062 }
063
064 public static void configure(final URL url) throws FactoryConfigurationError {
065 }
066
067 public static String subst(final String value, final Properties props) {
068 return value;
069 }
070
071 public static void setParameter(final Element elem, final PropertySetter propSetter, final Properties props) {
072
073 }
074
075 public static Object parseElement(final Element element, final Properties props,
076 @SuppressWarnings("rawtypes") final Class expectedClass)
077 throws Exception {
078 return null;
079 }
080 }