public class DefaultMuleContextBuilder extends Object implements MuleContextBuilder
MuleContextBuilder that uses DefaultMuleContext
as the default MuleContext implementation and builds it with defaults
values for MuleConfiguration, LifecycleManager, WorkManager,
WorkListener and ServerNotificationManager.| Modifier and Type | Field and Description |
|---|---|
protected MuleConfiguration |
config |
protected MuleContextLifecycleManager |
lifecycleManager |
protected static org.apache.commons.logging.Log |
logger |
static String |
MULE_CONTEXT_WORKMANAGER_MAXTHREADSACTIVE |
protected ServerNotificationManager |
notificationManager |
protected SplashScreen |
shutdownScreen |
protected SplashScreen |
startupScreen |
protected javax.resource.spi.work.WorkListener |
workListener |
protected WorkManager |
workManager |
| Constructor and Description |
|---|
DefaultMuleContextBuilder() |
protected static final org.apache.commons.logging.Log logger
public static final String MULE_CONTEXT_WORKMANAGER_MAXTHREADSACTIVE
protected MuleConfiguration config
protected MuleContextLifecycleManager lifecycleManager
protected WorkManager workManager
protected javax.resource.spi.work.WorkListener workListener
protected ServerNotificationManager notificationManager
protected SplashScreen startupScreen
protected SplashScreen shutdownScreen
public MuleContext buildMuleContext()
MuleContext instance using configured builder instance.
Does not initialise or start MuleContext, only constructs the instance.buildMuleContext in interface MuleContextBuilderprotected DefaultMuleContext createDefaultMuleContext()
public void setMuleConfiguration(MuleConfiguration config)
setMuleConfiguration in interface MuleContextBuilderpublic void setWorkManager(WorkManager workManager)
setWorkManager in interface MuleContextBuilderpublic void setWorkListener(javax.resource.spi.work.WorkListener workListener)
setWorkListener in interface MuleContextBuilderpublic void setNotificationManager(ServerNotificationManager notificationManager)
setNotificationManager in interface MuleContextBuilderprotected MuleConfiguration getMuleConfiguration()
public <T> T injectMuleContextIfRequired(T object,
MuleContext muleContext)
protected MuleContextLifecycleManager getLifecycleManager()
public void setLifecycleManager(LifecycleManager manager)
setLifecycleManager in interface MuleContextBuilderprotected WorkManager getWorkManager()
protected javax.resource.spi.work.WorkListener getWorkListener()
protected ServerNotificationManager getNotificationManager()
public SplashScreen getStartupScreen()
public void setStartupScreen(SplashScreen startupScreen)
public SplashScreen getShutdownScreen()
public void setShutdownScreen(SplashScreen shutdownScreen)
protected DefaultMuleConfiguration createMuleConfiguration()
protected MuleContextLifecycleManager createLifecycleManager()
protected MuleWorkManager createWorkManager()
protected ImmutableThreadingProfile createMuleWorkManager()
protected DefaultWorkListener createWorkListener()
protected ServerNotificationManager createNotificationManager()
public static ServerNotificationManager createDefaultNotificationManager()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.