public interface Deployer
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleanup deployment
|
void |
deploy(DeploymentFileData deploymentFileData)
Process a file and add it to the configuration
|
void |
init(ConfigurationContext configCtx)
Initialize the Deployer
|
void |
setDirectory(java.lang.String directory)
Set the directory
|
void |
setExtension(java.lang.String extension)
Set the extension to look for
TODO: Support multiple extensions?
|
default void |
sort(java.util.List<DeploymentFileData> filesToDeploy,
int startIndex,
int toIndex)
Sorts a sublist of the given list of DeploymentFileData objects by file name in ascending order.
|
void |
undeploy(java.lang.String fileName)
Remove a given file from the configuration
|
void init(ConfigurationContext configCtx)
configCtx - our ConfigurationContextvoid deploy(DeploymentFileData deploymentFileData) throws DeploymentException
deploymentFileData - the DeploymentFileData object to deployDeploymentException - if there is a problemvoid setDirectory(java.lang.String directory)
directory - directory namevoid setExtension(java.lang.String extension)
extension - the file extension associated with this Deployervoid undeploy(java.lang.String fileName)
throws DeploymentException
fileName - name of item to removeDeploymentException - if there is a problemvoid cleanup()
throws DeploymentException
DeploymentException - If an error occurs during cleanupdefault void sort(java.util.List<DeploymentFileData> filesToDeploy, int startIndex, int toIndex)
filesToDeploy - the list of DeploymentFileDatastartIndex - the start index (inclusive) of the sublist to sorttoIndex - the end index (exclusive) of the sublist to sortCopyright © 2004-2025 The Apache Software Foundation. All Rights Reserved.