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