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 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 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 MuleContextBuilder
protected DefaultMuleContext createDefaultMuleContext()
public void setMuleConfiguration(MuleConfiguration config)
setMuleConfiguration
in interface MuleContextBuilder
public void setWorkManager(WorkManager workManager)
setWorkManager
in interface MuleContextBuilder
public void setWorkListener(javax.resource.spi.work.WorkListener workListener)
setWorkListener
in interface MuleContextBuilder
public void setNotificationManager(ServerNotificationManager notificationManager)
setNotificationManager
in interface MuleContextBuilder
protected MuleConfiguration getMuleConfiguration()
public <T> T injectMuleContextIfRequired(T object, MuleContext muleContext)
protected MuleContextLifecycleManager getLifecycleManager()
public void setLifecycleManager(LifecycleManager manager)
setLifecycleManager
in interface MuleContextBuilder
protected 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()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.