public interface MuleContext
extends org.mule.runtime.api.lifecycle.Lifecycle
| Modifier and Type | Method and Description |
|---|---|
void |
addRegistry(Registry registry)
Deprecated.
as of 3.7.0. This will be removed in Mule 4.0
|
void |
fireNotification(ServerNotification notification)
Fires a server notification to all regiistered listeners
|
ArtifactType |
getArtifactType()
The
ArtifactType indicating if this configuration object is for an application or a domain. |
MuleClient |
getClient() |
String |
getClusterId() |
int |
getClusterNodeId() |
MuleConfiguration |
getConfiguration() |
Map<QName,Set<Object>> |
getConfigurationAnnotations()
Return all annotations seen in the configuration
|
ConfigurationComponentLocator |
getConfigurationComponentLocator() |
org.mule.runtime.api.config.custom.CustomizationService |
getCustomizationService()
Provides access to a
CustomizationService to change the default services provided by the MuleContext. |
DataTypeConversionResolver |
getDataTypeConverterResolver() |
MessagingExceptionHandler |
getDefaultErrorHandler() |
ErrorTypeLocator |
getErrorTypeLocator() |
ErrorTypeRepository |
getErrorTypeRepository() |
Collection<ExceptionContextProvider> |
getExceptionContextProviders() |
SystemExceptionHandler |
getExceptionListener() |
ClassLoader |
getExecutionClassLoader() |
ExtendedExpressionManager |
getExpressionManager() |
ExtensionManager |
getExtensionManager() |
FlowTraceManager |
getFlowTraceManager() |
String |
getId() |
Injector |
getInjector()
Returns a
Injector capable of injecting dependencies into objects |
LifecycleManager |
getLifecycleManager() |
org.mule.runtime.api.lock.LockFactory |
getLockFactory()
Factory for creating locks for synchronizing mule components.
|
ServerNotificationManager |
getNotificationManager() |
ObjectSerializer |
getObjectSerializer()
The instance of
ObjectSerializer to be used to serialize/deserealize objects |
org.mule.runtime.api.store.ObjectStoreManager |
getObjectStoreManager() |
ProcessorInterceptorProvider |
getProcessorInterceptorManager() |
ProcessingTimeWatcher |
getProcessorTimeWatcher() |
QueueManager |
getQueueManager()
Gets the queue manager used by mule for queuing events.
|
MuleRegistry |
getRegistry() |
BootstrapServiceDiscoverer |
getRegistryBootstrapServiceDiscoverer() |
SchedulerConfig |
getSchedulerBaseConfig() |
SchedulerService |
getSchedulerService() |
SecurityManager |
getSecurityManager()
Gets the security manager used by this Mule instance to authenticate and authorise incoming and outgoing event traffic and
service invocations
|
long |
getStartDate()
Returns the date when the server was started.
|
AllStatistics |
getStatistics() |
StreamCloserService |
getStreamCloserService()
Returns the configured
StreamCloserService |
SingleResourceTransactionFactoryManager |
getTransactionFactoryManager() |
TransactionManager |
getTransactionManager()
Returns the Jta transaction manager used by this Mule server instance.
|
TransformationService |
getTransformationService()
Gets application wide instance of
TransformationService used for applying
Transformer's to a Message and for obtaining different representations
of the message payload. |
String |
getUniqueIdString()
Generate a unique ID string; this will begin with the cluster node ID followed by a dash, e.g.
|
void |
handleException(Exception e) |
void |
handleException(Exception e,
RollbackSourceCallback rollbackMethod) |
boolean |
isDisposed() |
boolean |
isDisposing() |
boolean |
isInitialised()
Determines if the server has been initialised
|
boolean |
isInitialising()
Determines if the server is being initialised
|
boolean |
isPrimaryPollingInstance() |
boolean |
isStarted()
Determines if the server has been started
|
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
registerListener(ServerNotificationListener l)
Registers an intenal server event listener.
|
void |
registerListener(ServerNotificationListener l,
String resourceIdentifier)
Registers an intenal server event listener.
|
void |
removeRegistry(Registry registry)
Deprecated.
as of 3.7.0. This will be removed in Mule 4.0
|
void |
setBootstrapServiceDiscoverer(BootstrapServiceDiscoverer bootstrapServiceDiscoverer)
Sets application wide instance of
BootstrapServiceDiscoverer |
void |
setExceptionListener(SystemExceptionHandler exceptionListener) |
void |
setExecutionClassLoader(ClassLoader cl) |
void |
setObjectStore(String name,
ListableObjectStore<Serializable> store) |
void |
setQueueManager(QueueManager queueManager)
Sets the queue manager used by mule for queuing events.
|
void |
setSecurityManager(SecurityManager securityManager)
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)
Sets application wide instance of
TransformationService |
void |
unregisterListener(ServerNotificationListener l)
Unregisters a previously registered listener.
|
boolean |
waitUntilStarted(int timeout)
Makes the caller wait until the
MuleContext was started |
@Deprecated void setTransactionManager(TransactionManager manager) throws Exception
manager - the manager to useExceptionTransactionManager getTransactionManager()
ServerNotificationManager getNotificationManager()
boolean isStarted()
boolean isInitialised()
boolean isInitialising()
boolean isDisposed()
boolean isDisposing()
void registerListener(ServerNotificationListener l) throws NotificationException
l - the listener to registerNotificationExceptionvoid registerListener(ServerNotificationListener l, String resourceIdentifier) throws NotificationException
l - the listener to registerresourceIdentifier - a particular resource name for the given type of listener For example, the resourceName could be
the name of a service if the listener was a ServiceNotificationListenerNotificationExceptionvoid unregisterListener(ServerNotificationListener l)
l - the listener to unregistervoid fireNotification(ServerNotification notification)
notification - the notification to firevoid setSecurityManager(SecurityManager securityManager) throws org.mule.runtime.api.lifecycle.InitialisationException, RegistrationException
securityManager - the security manager used by this Mule instance to authenticate and authorise incoming and outgoing
event traffic and service invocationsRegistrationExceptionorg.mule.runtime.api.lifecycle.InitialisationExceptionSecurityManager getSecurityManager()
SchedulerService getSchedulerService()
SchedulerConfig getSchedulerBaseConfig()
void setQueueManager(QueueManager queueManager) throws RegistrationException
queueManager - RegistrationExceptionQueueManager getQueueManager()
org.mule.runtime.api.store.ObjectStoreManager getObjectStoreManager()
ExtensionManager getExtensionManager()
ObjectSerializer getObjectSerializer()
ObjectSerializer to be used to serialize/deserealize objectsObjectSerializerAllStatistics getStatistics()
LifecycleManager getLifecycleManager()
MuleRegistry getRegistry()
Injector getInjector()
Injector capable of injecting dependencies into objectsInjectorMuleConfiguration getConfiguration()
StreamCloserService getStreamCloserService()
StreamCloserServiceStreamCloserService@Deprecated void addRegistry(Registry registry)
@Deprecated void removeRegistry(Registry registry)
long getStartDate()
void setExecutionClassLoader(ClassLoader cl)
ClassLoader getExecutionClassLoader()
boolean isStopped()
boolean isStopping()
boolean isStarting()
MuleClient getClient()
SystemExceptionHandler getExceptionListener()
void setExceptionListener(SystemExceptionHandler exceptionListener)
void setObjectStore(String name, ListableObjectStore<Serializable> store) throws RegistrationException
RegistrationExceptionvoid handleException(Exception e, RollbackSourceCallback rollbackMethod)
void handleException(Exception e)
String getClusterId()
int getClusterNodeId()
boolean isPrimaryPollingInstance()
String getUniqueIdString()
Map<QName,Set<Object>> getConfigurationAnnotations()
MessagingExceptionHandler getDefaultErrorHandler()
SingleResourceTransactionFactoryManager getTransactionFactoryManager()
DataTypeConversionResolver getDataTypeConverterResolver()
DataTypeConversionResolver instance to resolve implicit data type conversionsExtendedExpressionManager getExpressionManager()
ExtendedExpressionManager for evaluating expressions using Mule as the contextorg.mule.runtime.api.lock.LockFactory 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()
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)
TransformationServicetransformationService - transformation service instanceBootstrapServiceDiscoverer getRegistryBootstrapServiceDiscoverer()
BootstrapServiceDiscoverer used to bootstrap this MuleContextorg.mule.runtime.api.config.custom.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()
ErrorTypeLocator getErrorTypeLocator()
ErrorTypes related to exceptions and components.ErrorTypeRepository getErrorTypeRepository()
ErrorType instances of this
artifact.ProcessorInterceptorProvider getProcessorInterceptorManager()
void setBootstrapServiceDiscoverer(BootstrapServiceDiscoverer bootstrapServiceDiscoverer)
BootstrapServiceDiscovererbootstrapServiceDiscoverer - bootstrap service discoverer instance. Non null.ConfigurationComponentLocator getConfigurationComponentLocator()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.