MuleContext
interface will be replaced in future major version of mule.
For customizing an application or domain in mule you can use the CustomizationService
which can be accessed
by registering a deployment listener in a server plugin.
For accessing application or domain services like getTransformationService()
or
getErrorTypeRepository()
etc. you can use JSR330 annotations for dependency injection. In case you need to
access dynamically to objects within the application/domain you can inject
Registry
or if you want to access configuration elements you can use
ConfigurationComponentLocator
.@Deprecated public interface MuleContext extends Lifecycle
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Modifier and Type | Method and Description |
---|---|
ArtifactType |
getArtifactType()
Deprecated.
The
ArtifactType indicating if this configuration object is for an application or a domain. |
String |
getClusterId()
Deprecated.
|
int |
getClusterNodeId()
Deprecated.
|
MuleConfiguration |
getConfiguration()
Deprecated.
|
ConfigurationComponentLocator |
getConfigurationComponentLocator()
Deprecated.
|
CustomizationService |
getCustomizationService()
Deprecated.
Provides access to a
CustomizationService to change the default services provided by the MuleContext . |
DataTypeConversionResolver |
getDataTypeConverterResolver()
Deprecated.
|
FlowExceptionHandler |
getDefaultErrorHandler(Optional<String> rootContainerName)
Deprecated.
|
Properties |
getDeploymentProperties()
Deprecated.
|
ErrorTypeRepository |
getErrorTypeRepository()
Deprecated.
|
default EventContextService |
getEventContextService()
Deprecated.
|
Collection<ExceptionContextProvider> |
getExceptionContextProviders()
Deprecated.
|
SystemExceptionHandler |
getExceptionListener()
Deprecated.
|
ClassLoader |
getExecutionClassLoader()
Deprecated.
|
ExtendedExpressionManager |
getExpressionManager()
Deprecated.
|
ExtensionManager |
getExtensionManager()
Deprecated.
|
FlowTraceManager |
getFlowTraceManager()
Deprecated.
|
String |
getId()
Deprecated.
|
Injector |
getInjector()
Deprecated.
Returns a
Injector capable of injecting dependencies into objects |
LifecycleManager |
getLifecycleManager()
Deprecated.
|
LockFactory |
getLockFactory()
Deprecated.
Factory for creating locks for synchronizing mule components.
|
ServerNotificationManager |
getNotificationManager()
Deprecated.
|
ObjectSerializer |
getObjectSerializer()
Deprecated.
The instance of
ObjectSerializer to be used to serialize/deserealize objects |
ObjectStoreManager |
getObjectStoreManager()
Deprecated.
|
ProcessingTimeWatcher |
getProcessorTimeWatcher()
Deprecated.
|
QueueManager |
getQueueManager()
Deprecated.
Gets the queue manager used by mule for queuing events.
|
BootstrapServiceDiscoverer |
getRegistryBootstrapServiceDiscoverer()
Deprecated.
|
SchedulerConfig |
getSchedulerBaseConfig()
Deprecated.
|
SchedulerService |
getSchedulerService()
Deprecated.
|
SecurityManager |
getSecurityManager()
Deprecated.
Gets the security manager used by this Mule instance to authenticate and authorise incoming and outgoing event traffic and
service invocations
|
long |
getStartDate()
Deprecated.
Returns the date when the server was started.
|
AllStatistics |
getStatistics()
Deprecated.
|
StreamCloserService |
getStreamCloserService()
Deprecated.
Returns the configured
StreamCloserService |
SingleResourceTransactionFactoryManager |
getTransactionFactoryManager()
Deprecated.
|
TransactionManager |
getTransactionManager()
Deprecated.
Returns the Jta transaction manager used by this Mule server instance.
|
TransformationService |
getTransformationService()
Deprecated.
Gets application wide instance of an implementation of
TransformationService used for applying
Transformer 's to a Message and for obtaining different representations
of the message payload. |
String |
getUniqueIdString()
Deprecated.
Generate a unique ID string; this will begin with the cluster node ID followed by a dash, e.g.
|
void |
handleException(Exception e)
Deprecated.
|
void |
handleException(Exception e,
RollbackSourceCallback rollbackMethod)
Deprecated.
|
boolean |
isDisposed()
Deprecated.
|
boolean |
isDisposing()
Deprecated.
|
boolean |
isInitialised()
Deprecated.
Determines if the server has been initialised
|
boolean |
isInitialising()
Deprecated.
Determines if the server is being initialised
|
boolean |
isPrimaryPollingInstance()
Deprecated.
|
boolean |
isStarted()
Deprecated.
Determines if the server has been started
|
boolean |
isStarting()
Deprecated.
|
boolean |
isStopped()
Deprecated.
|
boolean |
isStopping()
Deprecated.
|
void |
setBootstrapServiceDiscoverer(BootstrapServiceDiscoverer bootstrapServiceDiscoverer)
Deprecated.
Sets application wide instance of
BootstrapServiceDiscoverer |
void |
setExceptionListener(SystemExceptionHandler exceptionListener)
Deprecated.
|
void |
setExecutionClassLoader(ClassLoader cl)
Deprecated.
|
void |
setExtensionManager(ExtensionManager extensionManager)
Deprecated.
Sets artifact wide instance of
ExtensionManager |
void |
setQueueManager(QueueManager queueManager)
Deprecated.
Sets the queue manager used by mule for queuing events.
|
void |
setSecurityManager(SecurityManager securityManager)
Deprecated.
Sets the security manager used by this Mule instance to authenticate and authorise incoming and outgoing event traffic and
service invocations
|
void |
setTransactionManager(TransactionManager manager)
Deprecated.
Use only for test cases.
|
void |
setTransformationService(TransformationService transformationService)
Deprecated.
Sets application wide instance of an implementation of
TransformationService |
boolean |
waitUntilStarted(int timeout)
Deprecated.
Makes the caller wait until the
MuleContext was started |
void |
withLifecycleLock(Runnable command)
Deprecated.
Runs a command synchronized by the lock for the context's lifecycle.
|
initialise
dispose
@Deprecated void setTransactionManager(TransactionManager manager) throws Exception
manager
- the manager to useException
TransactionManager getTransactionManager()
ServerNotificationManager getNotificationManager()
boolean isStarted()
boolean isInitialised()
boolean isInitialising()
boolean isDisposed()
boolean isDisposing()
void setSecurityManager(SecurityManager securityManager) throws InitialisationException
securityManager
- the security manager used by this Mule instance to authenticate and authorise incoming and outgoing
event traffic and service invocationsInitialisationException
SecurityManager getSecurityManager()
SchedulerService getSchedulerService()
SchedulerConfig getSchedulerBaseConfig()
void setQueueManager(QueueManager queueManager)
queueManager
- QueueManager getQueueManager()
ObjectStoreManager getObjectStoreManager()
ExtensionManager getExtensionManager()
ObjectSerializer getObjectSerializer()
ObjectSerializer
to be used to serialize/deserealize objectsObjectSerializer
AllStatistics getStatistics()
LifecycleManager getLifecycleManager()
Injector getInjector()
Injector
capable of injecting dependencies into objectsInjector
MuleConfiguration getConfiguration()
StreamCloserService getStreamCloserService()
StreamCloserService
StreamCloserService
long getStartDate()
void setExecutionClassLoader(ClassLoader cl)
ClassLoader getExecutionClassLoader()
boolean isStopped()
boolean isStopping()
boolean isStarting()
void withLifecycleLock(Runnable command)
Use this method to run code that depends on this context's lifecycle state not changing while the command is running.
command
- the command to run with the lock for this context's lifecycle taken.SystemExceptionHandler getExceptionListener()
void setExceptionListener(SystemExceptionHandler exceptionListener)
void handleException(Exception e, RollbackSourceCallback rollbackMethod)
void handleException(Exception e)
String getClusterId()
int getClusterNodeId()
boolean isPrimaryPollingInstance()
String getUniqueIdString()
FlowExceptionHandler getDefaultErrorHandler(Optional<String> rootContainerName)
SingleResourceTransactionFactoryManager getTransactionFactoryManager()
DataTypeConversionResolver getDataTypeConverterResolver()
DataTypeConversionResolver
instance to resolve implicit data type conversionsExtendedExpressionManager getExpressionManager()
ExtendedExpressionManager
for evaluating expressions using Mule as the contextLockFactory getLockFactory()
ProcessingTimeWatcher getProcessorTimeWatcher()
boolean waitUntilStarted(int timeout) throws InterruptedException
MuleContext
was startedtimeout
- maximum number of milliseconds that will be waitingInterruptedException
- if the current thread is interrupted while waitingArtifactType getArtifactType()
ArtifactType
indicating if this configuration object is for an application or a domain.FlowTraceManager getFlowTraceManager()
default EventContextService getEventContextService()
EventContext
s to generate a dump on demand.Collection<ExceptionContextProvider> getExceptionContextProviders()
TransformationService getTransformationService()
TransformationService
used for applying
Transformer
's to a Message
and for obtaining different representations
of the message payload.void setTransformationService(TransformationService transformationService)
TransformationService
transformationService
- transformation service instanceBootstrapServiceDiscoverer getRegistryBootstrapServiceDiscoverer()
BootstrapServiceDiscoverer
used to bootstrap this MuleContext
CustomizationService getCustomizationService()
CustomizationService
to change the default services provided by the MuleContext
.
Any usage of this service after the MuleContext
initialization will be disregarded.String getId()
ErrorTypeRepository getErrorTypeRepository()
ErrorType
instances of this
artifact.void setBootstrapServiceDiscoverer(BootstrapServiceDiscoverer bootstrapServiceDiscoverer)
BootstrapServiceDiscoverer
bootstrapServiceDiscoverer
- bootstrap service discoverer instance. Non null.ConfigurationComponentLocator getConfigurationComponentLocator()
void setExtensionManager(ExtensionManager extensionManager)
ExtensionManager
extensionManager
- manages the extensions available on the artifact. Non null.Properties getDeploymentProperties()
Copyright © 2018. All rights reserved.