public static class MuleDeployment.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
MuleDeployment |
deploy()
Deploys and starts the Mule instance with the specified configuration.
|
MuleDeployment.Builder |
locationSuffix(String suffix)
Configure the server location suffix.
|
MuleDeployment.Builder |
timeout(int seconds)
Specifies the deployment timeout for each deployed artifact.
|
MuleDeployment.Builder |
withApplications(String... applications)
Specifies application folders or ZIP files to be deployed to the apps folder.
|
MuleDeployment.Builder |
withDomainBundles(String... domainBundles)
Specifies domain-bundles to be deployed to the domains folder.
|
MuleDeployment.Builder |
withDomains(String... domains)
Specifies domains to be deployed to the domains folder.
|
MuleDeployment.Builder |
withLibraries(String... libraries)
Adds libraries to lib/user folder.
|
MuleDeployment.Builder |
withParameters(String... parameters)
Specifies parameters to be passed in the command line when starting Mule.
|
MuleDeployment.Builder |
withProperties(Map<String,String> properties)
Specifies a Map of system properties to be passed in the command line when starting Mule.
|
MuleDeployment.Builder |
withProperty(String property,
String value)
Specifies a system property to be passed in the command line when starting Mule.
|
MuleDeployment.Builder |
withPropertyUsingLambda(String property,
Supplier<String> propertySupplier)
Specifies a system property to be passed in the command line when starting Mule that needs to be resolved in the before()
of the MuleDeployment rule.
|
public MuleDeployment deploy()
public MuleDeployment.Builder timeout(int seconds)
seconds - public MuleDeployment.Builder withProperty(String property, String value)
property - value - public MuleDeployment.Builder withPropertyUsingLambda(String property, Supplier<String> propertySupplier)
property - propertySupplier - public MuleDeployment.Builder withProperties(Map<String,String> properties)
properties - public MuleDeployment.Builder withParameters(String... parameters)
parameters - public MuleDeployment.Builder withApplications(String... applications)
applications - public MuleDeployment.Builder locationSuffix(String suffix)
suffix - public MuleDeployment.Builder withDomains(String... domains)
domains - public MuleDeployment.Builder withDomainBundles(String... domainBundles)
domainBundles - domain bundle full paths to deploypublic MuleDeployment.Builder withLibraries(String... libraries)
libraries - Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.