public class ApplicationFileBuilder extends AbstractArtifactFileBuilder<ApplicationFileBuilder>
corrupted, resources
Constructor and Description |
---|
ApplicationFileBuilder(ApplicationFileBuilder source)
Creates a new builder from another instance.
|
ApplicationFileBuilder(String id)
Creates a new builder
|
ApplicationFileBuilder(String id,
ApplicationFileBuilder source)
Create a new builder from another instance and different ID.
|
Modifier and Type | Method and Description |
---|---|
ApplicationFileBuilder |
configuredWith(String propertyName,
String propertyValue)
Adds a property into the application properties file.
|
ApplicationFileBuilder |
containingClass(String classFile)
Adds a class file to the application classes folder.
|
ApplicationFileBuilder |
containingPlugin(ApplicationPluginFileBuilder plugin)
Adds an application plugin to the application.
|
ApplicationFileBuilder |
definedBy(String configFile)
Sets the configuration file used for the application.
|
ApplicationFileBuilder |
deployedWith(String propertyName,
String propertyValue)
Adds a property into the application deployment properties file.
|
String |
getConfigFile() |
protected List<ZipUtils.ZipResource> |
getCustomResources() |
protected ApplicationFileBuilder |
getThis() |
ApplicationFileBuilder |
sharingLibrary(String jarFile)
Adds a jar file to the application plugin lib folder.
|
checkImmutable, corrupted, createPropertiesFile, createPropertiesFile, getArtifactFile, getDeployedPath, getId, getTempFolder, getZipPath, usingLibrary
public ApplicationFileBuilder(String id)
id
- artifact identifier. Non empty.public ApplicationFileBuilder(ApplicationFileBuilder source)
source
- instance used as template to build the new one. Non null.public ApplicationFileBuilder(String id, ApplicationFileBuilder source)
id
- artifact identifier. Non empty.source
- instance used as template to build the new one. Non null.protected ApplicationFileBuilder getThis()
getThis
in class AbstractArtifactFileBuilder<ApplicationFileBuilder>
public ApplicationFileBuilder definedBy(String configFile)
configFile
- application configuration from a external file or test resource. Non empty.public ApplicationFileBuilder configuredWith(String propertyName, String propertyValue)
propertyName
- name fo the property to add. Non emptypropertyValue
- value of the property to add. Non null.public ApplicationFileBuilder deployedWith(String propertyName, String propertyValue)
propertyName
- name fo the property to add. Non emptypropertyValue
- value of the property to add. Non null.public ApplicationFileBuilder containingClass(String classFile)
classFile
- class file from a external file or test resource. Non empty.public ApplicationFileBuilder containingPlugin(ApplicationPluginFileBuilder plugin)
plugin
- builder defining the plugin. Non null.public ApplicationFileBuilder sharingLibrary(String jarFile)
jarFile
- jar file from a external file or test resource.public String getConfigFile()
protected List<ZipUtils.ZipResource> getCustomResources() throws Exception
getCustomResources
in class AbstractArtifactFileBuilder<ApplicationFileBuilder>
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.