public interface MuleContext extends Lifecycle
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| 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
|
LocalMuleClient |
getClient() |
String |
getClusterId() |
int |
getClusterNodeId() |
MuleConfiguration |
getConfiguration() |
Map<QName,Set<Object>> |
getConfigurationAnnotations()
Return all annotations seen in the configuration
|
DataTypeConversionResolver |
getDataTypeConverterResolver() |
MessagingExceptionHandler |
getDefaultExceptionStrategy() |
ThreadingProfile |
getDefaultMessageDispatcherThreadingProfile() |
ThreadingProfile |
getDefaultMessageReceiverThreadingProfile() |
ThreadingProfile |
getDefaultMessageRequesterThreadingProfile() |
ThreadingProfile |
getDefaultServiceThreadingProfile() |
ThreadingProfile |
getDefaultThreadingProfile() |
EndpointFactory |
getEndpointFactory()
Returns the EndpointFactory configured for this instance of Mule
|
SystemExceptionHandler |
getExceptionListener() |
ClassLoader |
getExecutionClassLoader() |
ExpressionLanguage |
getExpressionLanguage()
Expression Language for evaluating expressions using Mule as the context
|
ExpressionManager |
getExpressionManager()
Returns the Expression Manager configured for this instance of Mule
|
org.mule.extension.ExtensionManager |
getExtensionManager() |
Injector |
getInjector()
Returns a
Injector capable of
injecting dependencies into objects |
LifecycleManager |
getLifecycleManager() |
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 |
ObjectStoreManager |
getObjectStoreManager() |
ProcessingTimeWatcher |
getProcessorTimeWatcher() |
QueueManager |
getQueueManager()
Gets the queue manager used by mule for queuing events.
|
MuleRegistry |
getRegistry() |
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.
|
String |
getUniqueIdString()
Generate a unique ID string; this will begin with the cluster node ID followed by a
dash, e.g.
|
javax.resource.spi.work.WorkListener |
getWorkListener() |
WorkManager |
getWorkManager()
Obtains a workManager instance that can be used to schedule work in a
thread pool.
|
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 |
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)
Sets the Jta Transaction Manager to use with this Mule server instance
|
void |
unregisterListener(ServerNotificationListener l)
Unregisters a previously registered listener.
|
boolean |
waitUntilStarted(int timeout)
Makes the caller wait until the
MuleContext was started |
initialisedisposevoid 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 InitialisationException, RegistrationException
securityManager - the security manager used by this Mule instance to
authenticate and authorise incoming and outgoing event traffic
and service invocationsRegistrationExceptionInitialisationExceptionSecurityManager getSecurityManager()
WorkManager getWorkManager()
javax.resource.spi.work.WorkListener getWorkListener()
void setQueueManager(QueueManager queueManager) throws RegistrationException
queueManager - RegistrationExceptionQueueManager getQueueManager()
ObjectStoreManager getObjectStoreManager()
org.mule.extension.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()
ThreadingProfile getDefaultMessageDispatcherThreadingProfile()
ThreadingProfile getDefaultMessageRequesterThreadingProfile()
ThreadingProfile getDefaultMessageReceiverThreadingProfile()
ThreadingProfile getDefaultServiceThreadingProfile()
ThreadingProfile getDefaultThreadingProfile()
StreamCloserService getStreamCloserService()
StreamCloserServiceStreamCloserService@Deprecated void addRegistry(Registry registry)
@Deprecated void removeRegistry(Registry registry)
long getStartDate()
ExpressionManager getExpressionManager()
ExpressionManagerEndpointFactory getEndpointFactory()
EndpointFactoryvoid setExecutionClassLoader(ClassLoader cl)
ClassLoader getExecutionClassLoader()
boolean isStopped()
boolean isStopping()
boolean isStarting()
LocalMuleClient 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 getDefaultExceptionStrategy()
DefaultMessagingExceptionStrategySingleResourceTransactionFactoryManager getTransactionFactoryManager()
DataTypeConversionResolver getDataTypeConverterResolver()
DataTypeConversionResolver instance to resolve implicit data type conversionsExpressionLanguage getExpressionLanguage()
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 waitingCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.