VfsComponent
AbstractFileProvider
, VirtualFileProvider
public abstract class AbstractVfsContainer extends AbstractVfsComponent
VfsComponent
that contains a set of sub-components.Constructor | Description |
---|---|
AbstractVfsContainer() |
Modifier and Type | Method | 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
public AbstractVfsContainer()
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