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, setLogger
public 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 Closeable
close
in interface AutoCloseable
close
in interface VfsComponent
close
in class AbstractVfsComponent
protected void removeComponent(Object component)
component
- the component to remove.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.