public class JavaDeployment extends Object implements Deployment
Option to define the remote Deployment for JavaApplications.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Method and Description |
|---|---|
static JavaDeployment |
automatic()
Constructs a
JavaDeployment configured for auto-deployment. |
static JavaDeployment |
empty()
Constructs a
JavaDeployment without any files to deploy. |
boolean |
equals(Object other) |
JavaDeployment |
exclude(String fileName)
Exclude the specified filename from being deployed.
|
List<DeploymentArtifact> |
getDeploymentArtifacts(Platform platform,
com.oracle.bedrock.OptionsByType optionsByType)
Obtain the
DeploymentArtifacts to deploy. |
int |
hashCode() |
JavaDeployment |
include(String path)
Include the specified path (folder or filename) as an artifact to be deployed.
|
boolean |
isAutoDeployEnabled()
Determines if auto-deployment based on the
ClassPath should be performed. |
public boolean isAutoDeployEnabled()
ClassPath should be performed.true if auto-deployment is configured, false otherwisepublic JavaDeployment include(String path)
path - the path to a file or folder to be deployedJavaDeployment to permit fluent-style method callspublic JavaDeployment exclude(String fileName)
fileName - the name of the file that should not be deployedJavaDeployment to permit fluent-style method callspublic List<DeploymentArtifact> getDeploymentArtifacts(Platform platform, com.oracle.bedrock.OptionsByType optionsByType) throws FileNotFoundException, IOException
DeploymentDeploymentArtifacts to deploy.getDeploymentArtifacts in interface Deploymentplatform - the Platform on which the Application will be deployedoptionsByType - the OptionsByType for realizing the ApplicationList of DeploymentArtifactsFileNotFoundException - when a DeploymentArtifact cannot be foundIOException - when a DeploymentArtifact fail to be created/accessedpublic static JavaDeployment automatic()
JavaDeployment configured for auto-deployment.JavaDeployment configured for auto-deploymentpublic static JavaDeployment empty()
JavaDeployment without any files to deploy.JavaDeployment configured for no files to deployCopyright © 2017. All rights reserved.