mulesoft/mule-devkit — Issue #90: Cannot inject parametrized ObjectStore
Author: federecio
Created: 2012-01-30 21:16:59+00:00
State: open

If I add a configurable field like:

@Inject
private ObjectStore objectStore;

I get the following error:

[ERROR] /Users/federico/dev/projects/salesforce-connector/src/main/java/org/mule/modules/salesforce/SalesforceModule.java:129: I don't know how to inject the type org.mule.api.store.ObjectStore in field objectStore. The only types I know how to inject are: MuleContext, ObjectStoreManager, TransactionManager, QueueManager, MuleConfiguration, LifecycleManager, ClassLoader,ExpressionManager, EndpointFactory, MuleClient, SystemExceptionHandler, SecurityManager, WorkManager, Registry
[WARNING] The following options were not recognized by any processor: '[skipStudioPluginPackage]'
[ERROR] error on execute: An error ocurred while the DevKit was generating Java code. Check the logs for further details.

Problem is in the InjectValidator because it is comparing the type with equals, it fails because of the generics.