@NoImplement public interface MuleContextBuilder
MuleContext
. Implementing classes are stateful and should provide public
chainable setters for configuring the builder instance and no public getters.Modifier and Type | Method and Description |
---|---|
static MuleContextBuilder |
builder(ArtifactType artifactType)
Creates a new
MuleContextBuilder instance |
MuleContext |
buildMuleContext()
Builds a new
MuleContext instance using configured builder instance. |
void |
setDeploymentProperties(Optional<Properties> properties) |
void |
setErrorTypeRepository(ErrorTypeRepository errorTypeRepository) |
void |
setExecutionClassLoader(ClassLoader executionClassLoader) |
void |
setLifecycleManager(LifecycleManager lifecycleManager) |
void |
setListeners(List<MuleContextListener> listeners) |
void |
setMuleConfiguration(MuleConfiguration muleConfiguration) |
void |
setNotificationManager(ServerNotificationManager notificationManager) |
void |
setObjectSerializer(ObjectSerializer objectSerializer) |
MuleContext buildMuleContext()
MuleContext
instance using configured builder instance. Does not initialise or start MuleContext, only
constructs the instance.void setNotificationManager(ServerNotificationManager notificationManager)
void setLifecycleManager(LifecycleManager lifecycleManager)
void setMuleConfiguration(MuleConfiguration muleConfiguration)
void setExecutionClassLoader(ClassLoader executionClassLoader)
executionClassLoader
- classloader to use on the created context. Non null.void setObjectSerializer(ObjectSerializer objectSerializer)
objectSerializer
- object serializer to use on the created context. Non null.void setErrorTypeRepository(ErrorTypeRepository errorTypeRepository)
errorTypeRepository
- error type repository to be used in the context, is not configured a default one will be used.static MuleContextBuilder builder(ArtifactType artifactType)
MuleContextBuilder
instanceartifactType
- type of the artifact the owns the created context.void setDeploymentProperties(Optional<Properties> properties)
void setListeners(List<MuleContextListener> listeners)
Copyright © 2018. All rights reserved.