public abstract class AbstractVfsContainer extends AbstractVfsComponent
VfsComponent
that contains a set of sub-components.Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<java.lang.Object> |
components
The components contained by this component.
|
Constructor and Description |
---|
AbstractVfsContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponent(java.lang.Object component)
Adds a sub-component to this component.
|
void |
close()
Closes the sub-components of this component.
|
protected void |
removeComponent(java.lang.Object component)
Removes a sub-component from this component.
|
getContext, getLogger, init, setContext, setLogger
private final java.util.ArrayList<java.lang.Object> components
protected void addComponent(java.lang.Object component) throws FileSystemException
If the sub-component implements VfsComponent
, it is initialised. All sub-components are closed when this
component is closed.
component
- the component to add.FileSystemException
- if any error occurs.protected void removeComponent(java.lang.Object component)
component
- the component to remove.public void close()
close
in interface VfsComponent
close
in class AbstractVfsComponent