public class ArtifactPluginDescriptorFactory extends AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>
ArtifactPluginDescriptor instancesARTIFACT_DESCRIPTOR_DOES_NOT_EXISTS_ERROR, descriptorLoaderRepository| Constructor and Description |
|---|
ArtifactPluginDescriptorFactory()
Creates a default factory
|
ArtifactPluginDescriptorFactory(DescriptorLoaderRepository descriptorLoaderRepository,
ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
Creates a custom factory
|
| Modifier and Type | Method and Description |
|---|---|
ArtifactPluginDescriptor |
create(File pluginJarFile,
Optional<Properties> deploymentProperties) |
protected ArtifactPluginDescriptor |
createArtifactDescriptor(File artifactLocation,
String name,
Optional<Properties> deploymentProperties) |
protected void |
doDescriptorConfig(org.mule.runtime.api.deployment.meta.MulePluginModel artifactModel,
ArtifactPluginDescriptor descriptor,
File artifactLocation) |
protected ArtifactType |
getArtifactType() |
protected Map<String,Object> |
getBundleDescriptorAttributes(org.mule.runtime.api.deployment.meta.MuleArtifactLoaderDescriptor bundleDescriptorLoader,
Optional<Properties> deploymentPropertiesOptional) |
protected Map<String,Object> |
getClassLoaderModelAttributes(Optional<Properties> deploymentPropertiesOptional,
org.mule.runtime.api.deployment.meta.MuleArtifactLoaderDescriptor classLoaderModelLoaderDescriptor,
BundleDescriptor bundleDescriptor) |
protected org.mule.runtime.api.deployment.persistence.AbstractMuleArtifactModelJsonSerializer<org.mule.runtime.api.deployment.meta.MulePluginModel> |
getMuleArtifactModelJsonSerializer() |
createArtifact, createArtifactModel, getBundleDescriptor, invalidBundleDescriptorLoaderIdError, invalidClassLoaderModelIdError, loadFromJsonDescriptor, loadModelFromJsonpublic ArtifactPluginDescriptorFactory()
public ArtifactPluginDescriptorFactory(DescriptorLoaderRepository descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
descriptorLoaderRepository - contains all the ClassLoaderModelLoader registered on the container. Non
nullartifactDescriptorValidatorBuilder - ArtifactDescriptorValidatorBuilder builder to define the validator to be
used. Non null.public ArtifactPluginDescriptor create(File pluginJarFile, Optional<Properties> deploymentProperties) throws ArtifactDescriptorCreateException
create in interface ArtifactDescriptorFactory<ArtifactPluginDescriptor>create in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>ArtifactDescriptorCreateExceptionprotected Map<String,Object> getClassLoaderModelAttributes(Optional<Properties> deploymentPropertiesOptional, org.mule.runtime.api.deployment.meta.MuleArtifactLoaderDescriptor classLoaderModelLoaderDescriptor, BundleDescriptor bundleDescriptor)
getClassLoaderModelAttributes in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>protected Map<String,Object> getBundleDescriptorAttributes(org.mule.runtime.api.deployment.meta.MuleArtifactLoaderDescriptor bundleDescriptorLoader, Optional<Properties> deploymentPropertiesOptional)
getBundleDescriptorAttributes in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>protected ArtifactType getArtifactType()
getArtifactType in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>protected void doDescriptorConfig(org.mule.runtime.api.deployment.meta.MulePluginModel artifactModel,
ArtifactPluginDescriptor descriptor,
File artifactLocation)
doDescriptorConfig in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>protected ArtifactPluginDescriptor createArtifactDescriptor(File artifactLocation, String name, Optional<Properties> deploymentProperties)
createArtifactDescriptor in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>protected org.mule.runtime.api.deployment.persistence.AbstractMuleArtifactModelJsonSerializer<org.mule.runtime.api.deployment.meta.MulePluginModel> getMuleArtifactModelJsonSerializer()
getMuleArtifactModelJsonSerializer in class AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MulePluginModel,ArtifactPluginDescriptor>Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.