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 org.apache.log4j.config.PropertySetter;
020    import org.apache.log4j.spi.LoggerRepository;
021    import org.w3c.dom.Element;
022    
023    import javax.xml.parsers.FactoryConfigurationError;
024    import java.io.InputStream;
025    import java.io.Reader;
026    import java.net.URL;
027    import java.util.Properties;
028    
029    /**
030     *
031     */
032    public class DOMConfigurator {
033    
034        public static void configure(final Element element) {
035        }
036    
037        public static void configureAndWatch(final String configFilename) {
038        }
039    
040        public static void configureAndWatch(final String configFilename, final long delay) {
041        }
042    
043        public void doConfigure(final String filename, final LoggerRepository repository) {
044        }
045    
046        public void doConfigure(final URL url, final LoggerRepository repository) {
047        }
048    
049        public void doConfigure(final InputStream inputStream, final LoggerRepository repository)
050            throws FactoryConfigurationError {
051        }
052    
053        public void doConfigure(final Reader reader, final LoggerRepository repository)
054            throws FactoryConfigurationError {
055        }
056    
057        public void doConfigure(final Element element, final LoggerRepository repository) {
058        }
059    
060        public static void configure(final String filename) throws FactoryConfigurationError {
061        }
062    
063        public static void configure(final URL url) throws FactoryConfigurationError {
064        }
065    
066        public static String subst(final String value, final Properties props) {
067            return value;
068        }
069    
070        public static void setParameter(final Element elem, final PropertySetter propSetter, final Properties props) {
071    
072        }
073    
074        public static Object parseElement(final Element element, final Properties props, final Class expectedClass)
075            throws Exception {
076            return null;
077        }
078    }