Prototypes are created multiple times for a single injected prototype. The problem seems to be related to the fact that any call to the source property of a Prototype bean triggers the creation of a new instance. From the list, some related info:
The MediateProcessor, PostConstructProcessor and PreDestroyProcessor
call bean.source[ mediateTag.host.name ], which, when called on a
Prototype returnx getObject() on line 41, which in turn instantiates a
new Bean() on line 59 if the source of prototype is null, which is the
case if the Prototype is no sigleton on line 62.
I commented out all [PostConstruct] and saw that the situation was
better, but there was still a Prototype instantiated befor the
addToStage event fired. It turned out that this presentation class hat
a [Mediate] that was processed.
I guess with the right signleton check this should be solvable, but
I'm not sure where the right place is to put the checks. I have my
breakpoints in (rc2)
Prototype.as - 41, 59
MediateProcessor - 94, 99, 118, 123
PostConstructProcessor - 73
PreDestroyProcessor - 73
CommandMap calls Prototype( commandPrototype ).source on line 74, but
I don't know if this is a problem too.