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
install
in interface Artifact<ApplicationDescriptor>
public ApplicationDescriptor getDescriptor()
getDescriptor
in interface Artifact<ApplicationDescriptor>
public Domain getDomain()
getDomain
in interface Application
public void setAppName(String appName)
public void start()
Artifact
start
in interface Artifact<ApplicationDescriptor>
public void init()
Artifact
init
in interface Artifact<ApplicationDescriptor>
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<ApplicationDescriptor>
public void dispose()
Artifact
dispose
in interface Artifact<ApplicationDescriptor>
public String getArtifactName()
getArtifactName
in interface Artifact<ApplicationDescriptor>
public File[] getResourceFiles()
getResourceFiles
in interface Artifact<ApplicationDescriptor>
public ArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader
in interface Artifact<ApplicationDescriptor>
public void stop()
Artifact
stop
in interface Artifact<ApplicationDescriptor>
public ApplicationStatus getStatus()
getStatus
in interface Application
protected void doDispose()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.