public abstract class AbstractDefaultValuesMuleArtifactJsonGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MULE_ID |
protected static org.mule.runtime.api.deployment.persistence.MuleApplicationModelJsonSerializer |
serializer |
| Constructor and Description |
|---|
AbstractDefaultValuesMuleArtifactJsonGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(MuleArtifactContentResolver muleArtifactContentResolver)
Generates the default value for every non-defined fields in a mule-artifact.json file during build time and updates
accordingly
|
void |
generate(Path originFolder,
Path destinationFolder,
MuleArtifactContentResolver muleArtifactContentResolver)
Generates the default value for every non-defined fields in a mule-artifact.json and copy this to the destination folder
|
protected org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder |
getBuilderWithRequiredValues(org.mule.runtime.api.deployment.meta.MuleApplicationModel muleArtifact)
Builds a
MuleApplicationModel.MuleApplicationModelBuilder with the required values of a MuleApplicationModel. |
protected Set<String> |
getConfigs(org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver) |
protected Map<String,Object> |
getUpdatedAttributes(org.mule.runtime.api.deployment.meta.MuleArtifactLoaderDescriptor descriptorLoader,
String attribute,
Object value) |
protected abstract void |
setBuilderWithDefaultBundleDescriptorLoaderValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver artifactContentResolver)
Updates a
MuleApplicationModel.MuleApplicationModelBuilder bundleDescriptorLoader field with default the default
value based on the MuleApplicationModel. |
protected void |
setBuilderWithDefaultConfigsValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
Updates a
MuleApplicationModel.MuleApplicationModelBuilder configs field with default values based on a
MuleArtifactContentResolver. |
protected abstract void |
setBuilderWithDefaultExportedPackagesValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
Updates a
MuleApplicationModel.MuleApplicationModelBuilder exportedPackages in the attributes field with default
values based on a MuleArtifactContentResolver. |
protected abstract void |
setBuilderWithDefaultExportedResourcesValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
Updates a
MuleApplicationModel.MuleApplicationModelBuilder exportedResources in the attributes field with default
values based on a MuleArtifactContentResolver. |
protected void |
setBuilderWithDefaultName(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
Sets the name as groupId:artifactId:version if not set in the originalMuleArtifact
|
protected void |
setBuilderWithDefaultRedeploymentEnabled(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact)
Updates a
MuleApplicationModel.MuleApplicationModelBuilder redeploymentEnabled field with default the default value
based on the MuleApplicationModel. |
protected abstract void |
setBuilderWithDefaultRequiredProduct(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
Sets the builder with the default required
Product |
protected void |
setBuilderWithDefaultSecureProperties(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact)
Sets the builder with an empty list of secure properties if not set in originalMuleArtifact
|
protected void |
setBuilderWithIncludeTestDependencies(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
MuleArtifactContentResolver muleArtifactContentResolver) |
protected static final String MULE_ID
protected static final org.mule.runtime.api.deployment.persistence.MuleApplicationModelJsonSerializer serializer
public AbstractDefaultValuesMuleArtifactJsonGenerator()
public void generate(MuleArtifactContentResolver muleArtifactContentResolver) throws IOException
muleArtifactContentResolver - muleArtifactContentResolver of project being builtIOExceptionpublic void generate(Path originFolder, Path destinationFolder, MuleArtifactContentResolver muleArtifactContentResolver) throws IOException
originFolder - folder location containing the original mule-artifact.jsondestinationFolder - folder location where the updated mule-artifact.json is going to be written tomuleArtifactContentResolver - resolves all the contents that are going to be defaulted in the generated the
mule-artifact.jsonIOExceptionprotected abstract void setBuilderWithDefaultRequiredProduct(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
throws IOException
Productbuilder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolvermuleArtifactContentResolver - the application content resolverIOExceptionprotected abstract void setBuilderWithDefaultExportedResourcesValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
throws IOException
MuleApplicationModel.MuleApplicationModelBuilder exportedResources in the attributes field with default
values based on a MuleArtifactContentResolver.builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolvermuleArtifactContentResolver - the application content resolverIOExceptionprotected abstract void setBuilderWithDefaultBundleDescriptorLoaderValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver artifactContentResolver)
MuleApplicationModel.MuleApplicationModelBuilder bundleDescriptorLoader field with default the default
value based on the MuleApplicationModel.builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolverprotected void setBuilderWithDefaultSecureProperties(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact)
builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolverprotected void setBuilderWithDefaultName(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolvermuleArtifactContentResolver - the application content resolverprotected void setBuilderWithIncludeTestDependencies(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
MuleArtifactContentResolver muleArtifactContentResolver)
throws IOException
IOExceptionprotected abstract void setBuilderWithDefaultExportedPackagesValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
throws IOException
MuleApplicationModel.MuleApplicationModelBuilder exportedPackages in the attributes field with default
values based on a MuleArtifactContentResolver.builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - original mule application modelmuleArtifactContentResolver - the application content resolverIOExceptionprotected void setBuilderWithDefaultConfigsValue(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact,
MuleArtifactContentResolver muleArtifactContentResolver)
throws IOException
MuleApplicationModel.MuleApplicationModelBuilder configs field with default values based on a
MuleArtifactContentResolver.builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - original mule application modelmuleArtifactContentResolver - the application content resolverIOExceptionprotected void setBuilderWithDefaultRedeploymentEnabled(org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder builder,
org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact)
MuleApplicationModel.MuleApplicationModelBuilder redeploymentEnabled field with default the default value
based on the MuleApplicationModel.builder - builder for the mule artifact that is going to be generatedoriginalMuleArtifact - the application content resolverprotected org.mule.runtime.api.deployment.meta.MuleApplicationModel.MuleApplicationModelBuilder getBuilderWithRequiredValues(org.mule.runtime.api.deployment.meta.MuleApplicationModel muleArtifact)
MuleApplicationModel.MuleApplicationModelBuilder with the required values of a MuleApplicationModel.muleArtifact - mule application model that is going to be used to generate the builderprotected Set<String> getConfigs(org.mule.runtime.api.deployment.meta.MuleApplicationModel originalMuleArtifact, MuleArtifactContentResolver muleArtifactContentResolver) throws IOException
IOExceptionCopyright © 2018 MuleSoft Inc. All rights reserved.