0 Replies Latest reply on Jul 8, 2008 5:19 AM by porcherg

    auto-wire in ObjectDescriptor now search in other contexts

    porcherg Novice

      The autoWire method in objectDescriptor (used to automatically inject field values by using other objects in the wireContext) only looked for objects to inject in the same WireContext.

      This caused a bug in org.jbpm.msg.MemMessageServiceTest because one object is in the "environment-factory" context and the other in "environment" context.

      I changed the behavior of the autoWire method. It now looks for an object in the same context, but now if no object is found, it looks for an object in the current environment.