org.mule.context
Class DefaultMuleContextBuilder
java.lang.Object
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
.
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
DefaultMuleContextBuilder
public DefaultMuleContextBuilder()
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.