org.mule.module.launcher.artifact
Interface Artifact

All Known Subinterfaces:
Application, Domain
All Known Implementing Classes:
ApplicationWrapper, ArtifactWrapper, DefaultMuleApplication, DefaultMuleDomain, DomainWrapper

public interface Artifact

An Artifact is an abstract representation of a deployable unit within the mule container.


Method Summary
 void dispose()
          Dispose the artifact.
 ArtifactClassLoader getArtifactClassLoader()
           
 String getArtifactName()
           
 MuleContext getMuleContext()
           
 File[] getResourceFiles()
           
 void init()
          Initialise the artifact resources
 void install()
          Install the artifact.
 void start()
          Starts the artifact execution
 void stop()
          Stops the artifact execution
 

Method Detail

install

void install()
             throws InstallException
Install the artifact. Most commonly this includes the creation of the class loader and validation of resources.

Throws:
InstallException

init

void init()
Initialise the artifact resources


start

void start()
           throws DeploymentStartException
Starts the artifact execution

Throws:
DeploymentStartException

stop

void stop()
Stops the artifact execution


dispose

void dispose()
Dispose the artifact. Most commonly this includes the release of the resources held by the artifact


getArtifactName

String getArtifactName()
Returns:
the artifact identifier

getResourceFiles

File[] getResourceFiles()
Returns:
an array with the configuration files of the artifact. Never returns null. If there's no configuration file then returns an empty array.

getArtifactClassLoader

ArtifactClassLoader getArtifactClassLoader()
Returns:
class loader responsible for loading resources for this artifact.

getMuleContext

MuleContext getMuleContext()
Returns:
MuleContext created from the artifact configurations files.


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.