public class DefaultMuleApplication extends Object implements Application
Modifier and Type | Field and Description |
---|---|
protected ApplicationClassLoaderFactory |
applicationClassLoaderFactory |
protected Log |
deployLogger |
protected ArtifactClassLoader |
deploymentClassLoader |
protected DeploymentListener |
deploymentListener |
protected ApplicationDescriptor |
descriptor |
protected Log |
logger |
protected MuleContext |
muleContext |
Constructor and Description |
---|
DefaultMuleApplication(ApplicationDescriptor descriptor,
ApplicationClassLoaderFactory applicationClassLoaderFactory,
Domain domain) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAnnotationsConfigBuilderIfPresent(List<ConfigurationBuilder> builders) |
protected ConfigurationBuilder |
createConfigurationBuilderFromApplicationProperties() |
void |
dispose()
Dispose the artifact.
|
protected void |
doDispose() |
ArtifactClassLoader |
getArtifactClassLoader() |
String |
getArtifactName() |
ApplicationDescriptor |
getDescriptor() |
Domain |
getDomain() |
MuleContext |
getMuleContext() |
File[] |
getResourceFiles() |
ApplicationStatus |
getStatus() |
void |
init()
Initialise the artifact resources
|
void |
install()
Install the artifact.
|
void |
setAppName(String appName) |
void |
setDeploymentListener(DeploymentListener deploymentListener) |
protected void |
setMuleContext(MuleContext muleContext) |
void |
start()
Starts the artifact execution
|
void |
stop()
Stops the artifact execution
|
String |
toString() |
protected final transient Log logger
protected final transient Log deployLogger
protected final ApplicationDescriptor descriptor
protected final ApplicationClassLoaderFactory applicationClassLoaderFactory
protected MuleContext muleContext
protected ArtifactClassLoader deploymentClassLoader
protected DeploymentListener deploymentListener
public DefaultMuleApplication(ApplicationDescriptor descriptor, ApplicationClassLoaderFactory applicationClassLoaderFactory, Domain domain)
public void setDeploymentListener(DeploymentListener deploymentListener)
public void install()
Artifact
public ApplicationDescriptor getDescriptor()
getDescriptor
in interface Application
public Domain getDomain()
getDomain
in interface Application
public void setAppName(String appName)
public void start()
Artifact
public void init()
Artifact
protected void setMuleContext(MuleContext muleContext) throws NotificationException
NotificationException
protected ConfigurationBuilder createConfigurationBuilderFromApplicationProperties()
protected void addAnnotationsConfigBuilderIfPresent(List<ConfigurationBuilder> builders) throws Exception
Exception
public MuleContext getMuleContext()
getMuleContext
in interface Application
getMuleContext
in interface Artifact
public void dispose()
Artifact
public String getArtifactName()
getArtifactName
in interface Artifact
public File[] getResourceFiles()
getResourceFiles
in interface Artifact
public ArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader
in interface Artifact
public void stop()
Artifact
public ApplicationStatus getStatus()
getStatus
in interface Application
protected void doDispose()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.