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 and
ServerNotificationManager.| Modifier and Type | Field and Description |
|---|---|
protected BootstrapServiceDiscoverer |
bootstrapDiscoverer |
protected MuleConfiguration |
config |
protected ClassLoader |
executionClassLoader |
protected MuleContextLifecycleManager |
lifecycleManager |
protected static org.slf4j.Logger |
logger |
protected ServerNotificationManager |
notificationManager |
protected ObjectSerializer |
objectSerializer |
| Constructor and Description |
|---|
DefaultMuleContextBuilder() |
protected static final org.slf4j.Logger logger
protected MuleConfiguration config
protected MuleContextLifecycleManager lifecycleManager
protected ServerNotificationManager notificationManager
protected BootstrapServiceDiscoverer bootstrapDiscoverer
protected ClassLoader executionClassLoader
protected ObjectSerializer objectSerializer
public MuleContext buildMuleContext()
MuleContext instance using configured builder instance. Does not initialise or start MuleContext, only
constructs the instance.buildMuleContext in interface MuleContextBuilderprotected SystemExceptionHandler createExceptionListener(DefaultMuleContext muleContext)
protected DefaultMuleContext createDefaultMuleContext()
public void setMuleConfiguration(MuleConfiguration config)
setMuleConfiguration in interface MuleContextBuilderpublic void setNotificationManager(ServerNotificationManager notificationManager)
setNotificationManager in interface MuleContextBuilderprotected MuleConfiguration getMuleConfiguration()
public void setExecutionClassLoader(ClassLoader executionClassLoader)
setExecutionClassLoader in interface MuleContextBuilderexecutionClassLoader - classloader to use on the created context. Non null.public void setObjectSerializer(ObjectSerializer objectSerializer)
setObjectSerializer in interface MuleContextBuilderobjectSerializer - object serializer to use on the created context. Non null.protected ClassLoader getExecutionClassLoader()
public <T> T injectMuleContextIfRequired(T object,
MuleContext muleContext)
protected MuleContextLifecycleManager getLifecycleManager()
public void setLifecycleManager(LifecycleManager manager)
setLifecycleManager in interface MuleContextBuilderprotected ServerNotificationManager getNotificationManager()
public void setBootstrapPropertiesServiceDiscoverer(BootstrapServiceDiscoverer bootstrapDiscoverer)
public BootstrapServiceDiscoverer getBootstrapPropertiesServiceDiscoverer()
protected BootstrapServiceDiscoverer createBootstrapDiscoverer()
protected DefaultMuleConfiguration createMuleConfiguration()
protected MuleContextLifecycleManager createLifecycleManager()
protected ServerNotificationManager createNotificationManager()
public static ServerNotificationManager createDefaultNotificationManager()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.