Class AbstractVfsComponent

java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
All Implemented Interfaces:
VfsComponent
Direct Known Subclasses:
AbstractFilesCache, AbstractFileSystem, AbstractVfsContainer, DefaultFileReplicator

public abstract class AbstractVfsComponent extends Object implements VfsComponent
A partial VfsComponent implementation.
  • Constructor Details

  • Method Details

    • setLogger

      public final void setLogger(org.apache.commons.logging.Log log)
      Sets the Logger to use for the component.
      Specified by:
      setLogger in interface VfsComponent
      Parameters:
      log - The Log to use.
    • setContext

      public final void setContext(VfsComponentContext context)
      Sets the context for this file system provider.
      Specified by:
      setContext in interface VfsComponent
      Parameters:
      context - The VfsComponentContext.
    • init

      public void init() throws FileSystemException
      Initializes the component. This implementation does nothing.
      Specified by:
      init in interface VfsComponent
      Throws:
      FileSystemException - if an error occurs.
    • close

      public void close()
      Closes the provider. This implementation does nothing.
      Specified by:
      close in interface VfsComponent
    • getLogger

      protected final org.apache.commons.logging.Log getLogger()
      Returns the logger for this file system to use.
      Returns:
      logger for this file system
    • getContext

      protected final VfsComponentContext getContext()
      Returns the context for this provider.
      Returns:
      provider context