org.mule.context
Class DefaultMuleContextBuilder

java.lang.Object
  extended by org.mule.context.DefaultMuleContextBuilder
All Implemented Interfaces:
MuleContextBuilder
Direct Known Subclasses:
ApplicationMuleContextBuilder

public class DefaultMuleContextBuilder
extends Object
implements MuleContextBuilder

Implementation of MuleContextBuilder that uses DefaultMuleContext as the default MuleContext implementation and builds it with defaults values for MuleConfiguration, LifecycleManager, WorkManager, WorkListener and ServerNotificationManager.


Field Summary
protected  MuleConfiguration config
           
protected  MuleContextLifecycleManager lifecycleManager
           
protected static Log logger
           
protected  ServerNotificationManager notificationManager
           
protected  SplashScreen shutdownScreen
           
protected  SplashScreen startupScreen
           
protected  javax.resource.spi.work.WorkListener workListener
           
protected  WorkManager workManager
           
 
Constructor Summary
DefaultMuleContextBuilder()
           
 
Method Summary
 MuleContext buildMuleContext()
          Builds a new MuleContext instance using configured builder instance.
protected  MuleContextLifecycleManager createLifecycleManager()
           
protected  DefaultMuleConfiguration createMuleConfiguration()
           
protected  ServerNotificationManager createNotificationManager()
           
protected  DefaultWorkListener createWorkListener()
           
protected  MuleWorkManager createWorkManager()
           
protected  MuleContextLifecycleManager getLifecycleManager()
           
protected  MuleConfiguration getMuleConfiguration()
           
protected  ServerNotificationManager getNotificationManager()
           
 SplashScreen getShutdownScreen()
           
 SplashScreen getStartupScreen()
           
protected  javax.resource.spi.work.WorkListener getWorkListener()
           
protected  WorkManager getWorkManager()
           
 void setLifecycleManager(LifecycleManager manager)
           
 void setMuleConfiguration(MuleConfiguration config)
           
 void setNotificationManager(ServerNotificationManager notificationManager)
           
 void setShutdownScreen(SplashScreen shutdownScreen)
           
 void setStartupScreen(SplashScreen startupScreen)
           
 void setWorkListener(javax.resource.spi.work.WorkListener workListener)
           
 void setWorkManager(WorkManager workManager)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final Log logger

config

protected MuleConfiguration config

lifecycleManager

protected MuleContextLifecycleManager lifecycleManager

workManager

protected WorkManager workManager

workListener

protected javax.resource.spi.work.WorkListener workListener

notificationManager

protected ServerNotificationManager notificationManager

startupScreen

protected SplashScreen startupScreen

shutdownScreen

protected SplashScreen shutdownScreen
Constructor Detail

DefaultMuleContextBuilder

public DefaultMuleContextBuilder()
Method Detail

buildMuleContext

public MuleContext buildMuleContext()
Builds a new MuleContext instance using configured builder instance. Does not initialise or start MuleContext, only constructs the instance.

Specified by:
buildMuleContext in interface MuleContextBuilder

setMuleConfiguration

public void setMuleConfiguration(MuleConfiguration config)
Specified by:
setMuleConfiguration in interface MuleContextBuilder

setWorkManager

public void setWorkManager(WorkManager workManager)
Specified by:
setWorkManager in interface MuleContextBuilder

setWorkListener

public void setWorkListener(javax.resource.spi.work.WorkListener workListener)
Specified by:
setWorkListener in interface MuleContextBuilder

setNotificationManager

public void setNotificationManager(ServerNotificationManager notificationManager)
Specified by:
setNotificationManager in interface MuleContextBuilder

getMuleConfiguration

protected MuleConfiguration getMuleConfiguration()

getLifecycleManager

protected MuleContextLifecycleManager getLifecycleManager()

setLifecycleManager

public void setLifecycleManager(LifecycleManager manager)
Specified by:
setLifecycleManager in interface MuleContextBuilder

getWorkManager

protected WorkManager getWorkManager()

getWorkListener

protected javax.resource.spi.work.WorkListener getWorkListener()

getNotificationManager

protected ServerNotificationManager getNotificationManager()

getStartupScreen

public SplashScreen getStartupScreen()

setStartupScreen

public void setStartupScreen(SplashScreen startupScreen)

getShutdownScreen

public SplashScreen getShutdownScreen()

setShutdownScreen

public void setShutdownScreen(SplashScreen shutdownScreen)

createMuleConfiguration

protected DefaultMuleConfiguration createMuleConfiguration()

createLifecycleManager

protected MuleContextLifecycleManager createLifecycleManager()

createWorkManager

protected MuleWorkManager createWorkManager()

createWorkListener

protected DefaultWorkListener createWorkListener()

createNotificationManager

protected ServerNotificationManager createNotificationManager()

toString

public String toString()
Overrides:
toString in class Object


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