public abstract class AbstractVfsContainer extends AbstractVfsComponent
VfsComponent
that contains a set of sub-components.Constructor and Description |
---|
AbstractVfsContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponent(Object component)
Adds a sub-component to this component.
|
void |
close()
Closes the sub-components of this component.
|
protected void |
removeComponent(Object component)
Removes a sub-component from this component.
|
getContext, getLogger, init, setContext, setLogger
protected void addComponent(Object component) throws FileSystemException
If the sub-component implements VfsComponent
, it is initialized. All sub-components are closed when this
component is closed.
component
- the component to add.FileSystemException
- if any error occurs.protected void removeComponent(Object component)
component
- the component to remove.public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface VfsComponent
close
in class AbstractVfsComponent
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.