1 16 package org.apache.commons.vfs.provider; 17 18 import org.apache.commons.logging.Log; 19 import org.apache.commons.vfs.FileSystemException; 20 21 26 public abstract class AbstractVfsComponent 27 implements VfsComponent 28 { 29 private VfsComponentContext context; 30 private Log log; 31 32 35 public final void setLogger(final Log log) 36 { 37 this.log = log; 38 } 39 40 43 public final void setContext(final VfsComponentContext context) 44 { 45 this.context = context; 46 } 47 48 51 public void init() throws FileSystemException 52 { 53 } 54 55 58 public void close() 59 { 60 } 61 62 65 protected final Log getLogger() 66 { 67 return log; 68 } 69 70 73 protected final VfsComponentContext getContext() 74 { 75 return context; 76 } 77 } 78 | Popular Tags |