public abstract class AbstractArtifact<T extends org.mule.runtime.module.artifact.api.descriptor.DeployableArtifactDescriptor> extends Object implements Artifact
Artifact.| Modifier and Type | Field and Description |
|---|---|
protected ArtifactDeployer |
artifactDeployer |
protected T |
artifactDescriptor |
protected ArtifactResources |
artifactResources |
protected ToolingArtifactContext |
context |
protected boolean |
deployed |
protected ReadWriteLock |
deploymentLock |
protected org.mule.runtime.api.component.ConfigurationProperties |
noFailureConfigurationProperties |
protected String |
remoteArtifactId |
protected org.mule.runtime.api.util.LazyValue<RuntimeToolingService> |
runtimeToolingService |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkState() |
void |
dispose() |
protected void |
disposeRemoteArtifactContext() |
ToolingApplicationModel |
getApplicationModel() |
org.mule.runtime.deployment.model.internal.tooling.ToolingArtifactClassLoader |
getArtifactClassLoader() |
String |
getArtifactName() |
protected List<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader> |
getArtifactPluginClassLoaders() |
org.mule.runtime.core.api.config.bootstrap.ArtifactType |
getArtifactType() |
URL |
getArtifactUrlContent() |
protected org.mule.runtime.ast.api.xml.AstXmlParser |
getAstXmlParser() |
protected List<org.mule.runtime.module.artifact.api.descriptor.ArtifactPluginDescriptor> |
getEffectivePlugins() |
List<org.mule.runtime.api.meta.model.ExtensionModel> |
getExtensionModels() |
String |
getId() |
org.mule.runtime.api.meta.MuleVersion |
getMinMuleVersion()
Resolves the effective min Mule version required by this artifact which is defined by the biggest value of minMuleVersion
from the descriptor and all the plugins descriptor that this artifact depends on.
|
Map<String,String> |
getProperties() |
File |
getRootArtifactFolder() |
protected abstract org.mule.runtime.api.util.LazyValue<ToolingApplicationModel> |
newToolingApplicationModelLazyValue() |
protected abstract org.mule.runtime.api.util.LazyValue<org.mule.runtime.deployment.model.internal.tooling.ToolingArtifactClassLoader> |
newToolingArtifactClassLoaderLazyValue() |
void |
setContext(ToolingArtifactContext context)
Sets the
ToolingArtifactContext to be used by this Artifact. |
String |
toString() |
protected ToolingArtifactContext context
protected ArtifactResources artifactResources
protected T extends org.mule.runtime.module.artifact.api.descriptor.DeployableArtifactDescriptor artifactDescriptor
protected volatile boolean deployed
protected volatile String remoteArtifactId
protected org.mule.runtime.api.util.LazyValue<RuntimeToolingService> runtimeToolingService
protected ArtifactDeployer artifactDeployer
protected org.mule.runtime.api.component.ConfigurationProperties noFailureConfigurationProperties
protected ReadWriteLock deploymentLock
public String getId()
public org.mule.runtime.core.api.config.bootstrap.ArtifactType getArtifactType()
getArtifactType in interface ArtifactArtifactType, could be a domain or application.public List<org.mule.runtime.api.meta.model.ExtensionModel> getExtensionModels()
getExtensionModels in interface ArtifactExtensionModel for the artifact.protected org.mule.runtime.ast.api.xml.AstXmlParser getAstXmlParser()
public String getArtifactName()
getArtifactName in interface Artifactpublic File getRootArtifactFolder()
getRootArtifactFolder in interface Artifactpublic Map<String,String> getProperties()
getProperties in interface ArtifactMap with properties for this artifact.public URL getArtifactUrlContent()
getArtifactUrlContent in interface ArtifactURL from which the content of the artifact.public org.mule.runtime.deployment.model.internal.tooling.ToolingArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader in interface ArtifactToolingArtifactClassLoader for the artifact.public void setContext(ToolingArtifactContext context)
ArtifactToolingArtifactContext to be used by this Artifact. This means that if the Runtime Tooling Service
API has changed and it was cached the remote artifact deployed it will be deployed again.setContext in interface Artifactcontext - ToolingArtifactContext to be used by this Artifactpublic void dispose()
dispose in interface org.mule.tooling.client.api.Disposableprotected void disposeRemoteArtifactContext()
public ToolingApplicationModel getApplicationModel()
getApplicationModel in interface ArtifactToolingApplicationModel for the artifact.public org.mule.runtime.api.meta.MuleVersion getMinMuleVersion()
ArtifactgetMinMuleVersion in interface Artifactprotected List<org.mule.runtime.module.artifact.api.descriptor.ArtifactPluginDescriptor> getEffectivePlugins()
protected abstract org.mule.runtime.api.util.LazyValue<org.mule.runtime.deployment.model.internal.tooling.ToolingArtifactClassLoader> newToolingArtifactClassLoaderLazyValue()
protected abstract org.mule.runtime.api.util.LazyValue<ToolingApplicationModel> newToolingApplicationModelLazyValue()
protected List<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader> getArtifactPluginClassLoaders()
protected void checkState()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.