public class ServiceDescriptorFactory extends org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>
ServiceDescriptor instances.| Constructor and Description |
|---|
ServiceDescriptorFactory(org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
Creates a new factory
|
| Modifier and Type | Method and Description |
|---|---|
ServiceDescriptor |
create(File artifactFolder,
Optional<Properties> properties) |
protected ServiceDescriptor |
createArtifactDescriptor(File artifactLocation,
String name,
Optional<Properties> properties) |
protected void |
doDescriptorConfig(org.mule.runtime.api.deployment.meta.MuleServiceModel artifactModel,
ServiceDescriptor descriptor,
File artifactLocation) |
protected ArtifactType |
getArtifactType() |
protected org.mule.runtime.api.deployment.persistence.AbstractMuleArtifactModelJsonSerializer<org.mule.runtime.api.deployment.meta.MuleServiceModel> |
getMuleArtifactModelJsonSerializer() |
createArtifact, createArtifactModel, getBundleDescriptor, getBundleDescriptorAttributes, getClassLoaderModelAttributes, invalidBundleDescriptorLoaderIdError, invalidClassLoaderModelIdError, loadFromJsonDescriptor, loadModelFromJsonpublic ServiceDescriptorFactory(org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
descriptorLoaderRepository - contains all the ClassLoaderModelLoader registered on the container. Non nullartifactDescriptorValidatorBuilder - ArtifactDescriptorValidatorBuilder to create the ArtifactDescriptorValidator in order to check the state of the descriptor once loaded.protected ArtifactType getArtifactType()
getArtifactType in class org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>public ServiceDescriptor create(File artifactFolder, Optional<Properties> properties) throws org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorCreateException
create in interface org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorFactory<ServiceDescriptor>create in class org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorCreateExceptionprotected void doDescriptorConfig(org.mule.runtime.api.deployment.meta.MuleServiceModel artifactModel,
ServiceDescriptor descriptor,
File artifactLocation)
doDescriptorConfig in class org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>protected ServiceDescriptor createArtifactDescriptor(File artifactLocation, String name, Optional<Properties> properties)
createArtifactDescriptor in class org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>protected org.mule.runtime.api.deployment.persistence.AbstractMuleArtifactModelJsonSerializer<org.mule.runtime.api.deployment.meta.MuleServiceModel> getMuleArtifactModelJsonSerializer()
getMuleArtifactModelJsonSerializer in class org.mule.runtime.module.artifact.api.descriptor.AbstractArtifactDescriptorFactory<org.mule.runtime.api.deployment.meta.MuleServiceModel,ServiceDescriptor>Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.