public abstract class AbstractVfsContainer extends AbstractVfsComponent
VfsComponent that contains a set of subcomponents.| Constructor and Description |
|---|
AbstractVfsContainer()
Constructs a new instance for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComponent(Object component)
Adds a subcomponent to this component.
|
void |
close()
Closes the subcomponents of this component.
|
protected void |
removeComponent(Object component)
Removes a subcomponent from this component.
|
getContext, getLogger, init, setContext, setLoggerpublic AbstractVfsContainer()
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.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface VfsComponentclose in class AbstractVfsComponentprotected void removeComponent(Object component)
component - the component to remove.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.