Package org.apache.commons.vfs2.provider
Class AbstractVfsComponent
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- VfsComponent
- Direct Known Subclasses:
- AbstractFilesCache,- AbstractFileSystem,- AbstractVfsContainer,- DefaultFileReplicator
A partial 
VfsComponent implementation.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the provider.protected final VfsComponentContextReturns the context for this provider.protected final org.apache.commons.logging.LogReturns the logger for this file system to use.voidinit()Initializes the component.final voidsetContext(VfsComponentContext context) Sets the context for this file system provider.final voidsetLogger(org.apache.commons.logging.Log log) Sets the Logger to use for the component.
- 
Constructor Details- 
AbstractVfsComponentpublic AbstractVfsComponent()Constructs a new instance for subclasses.
 
- 
- 
Method Details- 
closeCloses the provider. This implementation does nothing.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- VfsComponent
 
- 
getContextReturns the context for this provider.- Returns:
- provider context
 
- 
getLoggerReturns the logger for this file system to use.- Returns:
- logger for this file system
 
- 
initInitializes the component. This implementation does nothing.- Specified by:
- initin interface- VfsComponent
- Throws:
- FileSystemException- if an error occurs.
 
- 
setContextSets the context for this file system provider.- Specified by:
- setContextin interface- VfsComponent
- Parameters:
- context- The VfsComponentContext.
 
- 
setLoggerSets the Logger to use for the component.- Specified by:
- setLoggerin interface- VfsComponent
- Parameters:
- log- The Log to use.
 
 
-