Class AbstractVfsContainer
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractVfsContainer
- All Implemented Interfaces:
VfsComponent
- Direct Known Subclasses:
AbstractFileProvider, VirtualFileProvider
A
VfsComponent that contains a set of sub-components.- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponent(Object component) Adds a sub-component to this component.voidclose()Closes the sub-components of this component.protected voidremoveComponent(Object component) Removes a sub-component from this component.Methods inherited from class AbstractVfsComponent
getContext, getLogger, init, setContext, setLogger
-
Constructor Details
-
AbstractVfsContainer
public AbstractVfsContainer()
-
-
Method Details
-
addComponent
Adds a sub-component to this component. If the sub-component implementsVfsComponent, it is initialised. All sub-components are closed when this component is closed.- Throws:
FileSystemException
-
removeComponent
Removes a sub-component from this component. -
close
public void close()Closes the sub-components of this component.- Specified by:
closein interfaceVfsComponent- Overrides:
closein classAbstractVfsComponent
-