Coverage Report - org.apache.commons.io.monitor.FileAlterationListenerAdaptor
 
Classes in this File Line Coverage Branch Coverage Complexity
FileAlterationListenerAdaptor
100%
9/9
N/A
1
 
 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.commons.io.monitor;
 18  
 
 19  
 import java.io.File;
 20  
 
 21  
 /**
 22  
  * Convenience {@link FileAlterationListener} implementation that does nothing.
 23  
  * 
 24  
  * @see FileAlterationObserver
 25  
  * @version $Id$
 26  
  * @since 2.0
 27  
  */
 28  26
 public class FileAlterationListenerAdaptor implements FileAlterationListener {
 29  
 
 30  
     /**
 31  
      * File system observer started checking event.
 32  
      *
 33  
      * @param observer The file system observer (ignored)
 34  
      */
 35  
     @Override
 36  
     public void onStart(final FileAlterationObserver observer) {
 37  81
     }
 38  
 
 39  
     /**
 40  
      * Directory created Event.
 41  
      * 
 42  
      * @param directory The directory created (ignored)
 43  
      */
 44  
     @Override
 45  
     public void onDirectoryCreate(final File directory) {
 46  12
     }
 47  
 
 48  
     /**
 49  
      * Directory changed Event.
 50  
      * 
 51  
      * @param directory The directory changed (ignored)
 52  
      */
 53  
     @Override
 54  
     public void onDirectoryChange(final File directory) {
 55  18
     }
 56  
 
 57  
     /**
 58  
      * Directory deleted Event.
 59  
      * 
 60  
      * @param directory The directory deleted (ignored)
 61  
      */
 62  
     @Override
 63  
     public void onDirectoryDelete(final File directory) {
 64  6
     }
 65  
 
 66  
     /**
 67  
      * File created Event.
 68  
      * 
 69  
      * @param file The file created (ignored)
 70  
      */
 71  
     @Override
 72  
     public void onFileCreate(final File file) {
 73  44
     }
 74  
 
 75  
     /**
 76  
      * File changed Event.
 77  
      * 
 78  
      * @param file The file changed (ignored)
 79  
      */
 80  
     @Override
 81  
     public void onFileChange(final File file) {
 82  12
     }
 83  
 
 84  
     /**
 85  
      * File deleted Event.
 86  
      * 
 87  
      * @param file The file deleted (ignored)
 88  
      */
 89  
     @Override
 90  
     public void onFileDelete(final File file) {
 91  20
     }
 92  
 
 93  
     /**
 94  
      * File system observer finished checking event.
 95  
      *
 96  
      * @param observer The file system observer (ignored)
 97  
      */
 98  
     @Override
 99  
     public void onStop(final FileAlterationObserver observer) {
 100  81
     }
 101  
 
 102  
 }