public class PrivilegedFileReplicator extends Object implements FileReplicator, VfsComponent
Constructor and Description |
---|
PrivilegedFileReplicator(FileReplicator replicator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the replicator.
|
void |
init()
Initialises the component.
|
File |
replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendents.
|
void |
setContext(VfsComponentContext context)
Sets the context for the replicator.
|
void |
setLogger(org.apache.commons.logging.Log logger)
Sets the Logger to use for the component.
|
public PrivilegedFileReplicator(FileReplicator replicator)
public void setLogger(org.apache.commons.logging.Log logger)
setLogger
in interface VfsComponent
logger
- The logger.public void setContext(VfsComponentContext context)
setContext
in interface VfsComponent
context
- The component context.public void init() throws FileSystemException
init
in interface VfsComponent
FileSystemException
- if an error occurs.public void close()
close
in interface VfsComponent
public File replicateFile(FileObject srcFile, FileSelector selector) throws FileSystemException
replicateFile
in interface FileReplicator
srcFile
- The source FileObject.selector
- The file selector.FileSystemException
- if an error occurs.Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.