Search in sources :

Example 1 with MuleApplicationModel

use of org.mule.runtime.api.deployment.meta.MuleApplicationModel in project mule by mulesoft.

the class ToolingApplicationDescriptorFactory method createArtifactModelBuilder.

/**
 * Creates a {@link MuleApplicationModel.MuleApplicationModelBuilder} for the application from its artifact folder.
 *
 * @param artifactFolder location of the application root folder.
 * @return a {@link MuleApplicationModel.MuleApplicationModelBuilder}.
 */
public MuleApplicationModel.MuleApplicationModelBuilder createArtifactModelBuilder(File artifactFolder) {
    MuleApplicationModel muleApplicationModel = super.createArtifactModel(artifactFolder);
    MuleApplicationModel.MuleApplicationModelBuilder builder = new MuleApplicationModel.MuleApplicationModelBuilder();
    builder.setRedeploymentEnabled(muleApplicationModel.isRedeploymentEnabled());
    builder.setName(muleApplicationModel.getName());
    builder.setConfigs(muleApplicationModel.getConfigs());
    builder.setMinMuleVersion(muleApplicationModel.getMinMuleVersion());
    builder.setRequiredProduct(muleApplicationModel.getRequiredProduct());
    builder.withBundleDescriptorLoader(muleApplicationModel.getBundleDescriptorLoader());
    builder.withClassLoaderModelDescriptorLoader(muleApplicationModel.getBundleDescriptorLoader());
    return builder;
}
Also used : MuleApplicationModel(org.mule.runtime.api.deployment.meta.MuleApplicationModel)

Aggregations

MuleApplicationModel (org.mule.runtime.api.deployment.meta.MuleApplicationModel)1