mulesoft/mule-devkit — Issue #82: @Inject fails in Devkit 3.2
Author: ingrambondin
Created: 2012-01-23 15:42:40+00:00
State: open

Injecting a MuleContext into a class annotated with @Connector is failing. The code being used is:

@Inject
private MuleContext myMuleContext;

public void setMyMuleContext(MuleContext myMuleContext) {
this.myMuleContext = myMuleContext;
}

Using myMuleContext in a method annotated with @Processor results in a Null Pointer Exception, as myMuleContext is null.