org.mule.module.launcher
Class DefaultMuleApplication

java.lang.Object
  extended by org.mule.module.launcher.DefaultMuleApplication
All Implemented Interfaces:
Application

public class DefaultMuleApplication
extends java.lang.Object
implements Application


Nested Class Summary
protected  class DefaultMuleApplication.ConfigFileWatcher
           
 
Field Summary
protected  java.lang.String[] absoluteResourcePaths
           
protected static java.lang.String ANCHOR_FILE_BLURB
           
protected static int DEFAULT_RELOAD_CHECK_INTERVAL_MS
           
protected  ApplicationDescriptor descriptor
           
protected  Log logger
           
protected  java.util.concurrent.ScheduledExecutorService watchTimer
           
 
Constructor Summary
DefaultMuleApplication(java.lang.String appName)
           
 
Method Summary
protected  void createDeploymentClassLoader()
           
protected  void createRedeployMonitor()
           
 void dispose()
           
 java.lang.String getAppName()
           
 java.lang.ClassLoader getDeploymentClassLoader()
           
 MuleContext getMuleContext()
           
 void init()
           
 void install()
           
 void redeploy()
           
protected  void scheduleConfigMonitor(AbstractFileWatcher watcher)
           
 void setAppName(java.lang.String appName)
           
 void start()
           
 void stop()
           
protected  java.io.File toAbsoluteFile(java.lang.String path)
          Resolve a resource relative to an application root.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_RELOAD_CHECK_INTERVAL_MS

protected static final int DEFAULT_RELOAD_CHECK_INTERVAL_MS
See Also:
Constant Field Values

ANCHOR_FILE_BLURB

protected static final java.lang.String ANCHOR_FILE_BLURB
See Also:
Constant Field Values

logger

protected final transient Log logger

watchTimer

protected java.util.concurrent.ScheduledExecutorService watchTimer

descriptor

protected ApplicationDescriptor descriptor

absoluteResourcePaths

protected java.lang.String[] absoluteResourcePaths
Constructor Detail

DefaultMuleApplication

public DefaultMuleApplication(java.lang.String appName)
Method Detail

install

public void install()
Specified by:
install in interface Application

getAppName

public java.lang.String getAppName()
Specified by:
getAppName in interface Application

setAppName

public void setAppName(java.lang.String appName)

start

public void start()
Specified by:
start in interface Application

init

public void init()
Specified by:
init in interface Application

getMuleContext

public MuleContext getMuleContext()
Specified by:
getMuleContext in interface Application

getDeploymentClassLoader

public java.lang.ClassLoader getDeploymentClassLoader()
Specified by:
getDeploymentClassLoader in interface Application
Returns:
a classloader associated with this deployment

dispose

public void dispose()
Specified by:
dispose in interface Application

redeploy

public void redeploy()
Specified by:
redeploy in interface Application

stop

public void stop()
Specified by:
stop in interface Application

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createDeploymentClassLoader

protected void createDeploymentClassLoader()

createRedeployMonitor

protected void createRedeployMonitor()
                              throws NotificationException
Throws:
NotificationException

scheduleConfigMonitor

protected void scheduleConfigMonitor(AbstractFileWatcher watcher)

toAbsoluteFile

protected java.io.File toAbsoluteFile(java.lang.String path)
Resolve a resource relative to an application root.

Parameters:
path - the relative path to resolve
Returns:
absolute path, may not actually exist (check with File.exists())


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