You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

Injecting Mule Managers into Anypoint Connectors


DevKit can inject several Mule managers into your module via the standard injection annotation @Inject.

For example, to access Mule’s expression manager:

private ExpressionManager expressionManager;


  • Every field requiring injection must have a public setter method. 

  • The injection mechanism currently only works on fields. 

  • Method parameters annotated with @Inject will be ignored.

The following is a list of the available objects for injection:

  • MuleContext

  • TransactionManager

  • SeverNotificationManager

  • QueueManager

  • MuleConfiguration

  • LifecycleManager

  • ClassLoader

  • ExpressionManager

  • EndpointFactory

  • MuleClient

  • SystemExceptionHandler

  • SecurityManager

  • ObjectStoreManager

  • WorkManager

  • Registry