org.mule.module.launcher.application
Class DefaultApplicationFactory

java.lang.Object
  extended by org.mule.module.launcher.application.DefaultApplicationFactory
All Implemented Interfaces:
ApplicationFactory, ArtifactFactory<Application>

public class DefaultApplicationFactory
extends Object
implements ApplicationFactory

Creates default mule applications


Field Summary
protected  DeploymentListener deploymentListener
           
 
Constructor Summary
DefaultApplicationFactory(ApplicationClassLoaderFactory applicationClassLoaderFactory, DomainFactory domainFactory)
           
 
Method Summary
protected  Application createAppFrom(ApplicationDescriptor descriptor)
           
 Application createArtifact(String appName)
          Creates an application
 File getArtifactDir()
           
 void setDeploymentListener(DeploymentListener deploymentListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deploymentListener

protected DeploymentListener deploymentListener
Constructor Detail

DefaultApplicationFactory

public DefaultApplicationFactory(ApplicationClassLoaderFactory applicationClassLoaderFactory,
                                 DomainFactory domainFactory)
Method Detail

setDeploymentListener

public void setDeploymentListener(DeploymentListener deploymentListener)

createArtifact

public Application createArtifact(String appName)
                           throws IOException
Description copied from interface: ApplicationFactory
Creates an application

Specified by:
createArtifact in interface ApplicationFactory
Specified by:
createArtifact in interface ArtifactFactory<Application>
Parameters:
appName - the name of the application to create
Returns:
the application instance that corresponds to the given name
Throws:
IOException

getArtifactDir

public File getArtifactDir()
Specified by:
getArtifactDir in interface ArtifactFactory<Application>
Returns:
the directory of the Artifact. Usually this directory contains the Artifact resources

createAppFrom

protected Application createAppFrom(ApplicationDescriptor descriptor)
                             throws IOException
Throws:
IOException


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