Skip to main content
Participating Frequently
January 27, 2011
Question

Cairngorm Modules with Parsley, Injections not working

  • January 27, 2011
  • 1 reply
  • 2165 views

Hi There,

I'm stuck with a problem related to modules. I'm using the Cairngorm module library in an AIR application. (Parsley 2.3.1, Flex SDK 4.1).

The problem is this:

When I load modules in debug mode from the IDE, injections are performed on them without any problems.

But: when I package and install the app, modules load, the context builds exactly the same way (according to the log), however none of injections are performed.

I get no errors in the log. The log outputs everything the same way in both cases, except for some trace statements I put in the [Inject] setters.

Any ideas why this would be happening?

Thanks in advance,
Bruce Flowers

This topic has been closed for replies.

1 reply

Adobe Employee
January 28, 2011

Hi Bruce,

Could you share a bit of code with me (ie the code where you perform the Inject) and I'll investigate this tomorrow morning.

Ps: good to hear from you

Sent from my phone

Participating Frequently
January 28, 2011

Hey Nick! How are you?

This problem is now resolved - knowing it must be something I might not doing correctly regarding one or another framework (CG modules or Parsley modules), I also asked on the Parsley forum.  Jens pointed out that metadata was not being kept in the modules during the release build, and adding all the tags via compiler args (or via the Metadata class) fixed it.

It's counterintuitive that the compiler doesn't already take this into account for modules optimized for a particular application, but there you have it 

Bruce