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.commons.io.monitor;
018    
019    import java.io.File;
020    
021    /**
022     * Convenience {@link FileAlterationListener} implementation that does nothing.
023     * 
024     * @see FileAlterationObserver
025     * @version $Id: FileAlterationListenerAdaptor.java 1304062 2012-03-22 21:10:46Z sebb $
026     * @since 2.0
027     */
028    public class FileAlterationListenerAdaptor implements FileAlterationListener {
029    
030        /**
031         * File system observer started checking event.
032         *
033         * @param observer The file system observer (ignored)
034         */
035        public void onStart(final FileAlterationObserver observer) {
036        }
037    
038        /**
039         * Directory created Event.
040         * 
041         * @param directory The directory created (ignored)
042         */
043        public void onDirectoryCreate(final File directory) {
044        }
045    
046        /**
047         * Directory changed Event.
048         * 
049         * @param directory The directory changed (ignored)
050         */
051        public void onDirectoryChange(final File directory) {
052        }
053    
054        /**
055         * Directory deleted Event.
056         * 
057         * @param directory The directory deleted (ignored)
058         */
059        public void onDirectoryDelete(final File directory) {
060        }
061    
062        /**
063         * File created Event.
064         * 
065         * @param file The file created (ignored)
066         */
067        public void onFileCreate(final File file) {
068        }
069    
070        /**
071         * File changed Event.
072         * 
073         * @param file The file changed (ignored)
074         */
075        public void onFileChange(final File file) {
076        }
077    
078        /**
079         * File deleted Event.
080         * 
081         * @param file The file deleted (ignored)
082         */
083        public void onFileDelete(final File file) {
084        }
085    
086        /**
087         * File system observer finished checking event.
088         *
089         * @param observer The file system observer (ignored)
090         */
091        public void onStop(final FileAlterationObserver observer) {
092        }
093    
094    }