FLUID-5266: Ginger references to subcomponents will force creation of "createOnEvent" components before their time

Metadata

Source
FLUID-5266
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2014-02-05T03:22:49.298-0500
Updated
2015-06-26T10:09:15.918-0400
Versions
  1. 1.5
Fixed Versions
  1. 1.9
Component
  1. IoC System

Description

The intention behind the "createOnEvent" annotation applied to a component is that it will be created ONLY on receipt of the event specified. Unfortunately, the oldest "ginger process" code held in fluid.makeGingerStrategy ignores this event annotation and should it receive a ginger reference (expressed by member name) to a component which might be created, will create it on the spot whether it has a "createOnEvent" specification or not.

This algorithm should be corrected to fail with a diagnostic in the case this early creation is requested (we might make an exception for an exact reference to just the subcomponent in question but it's hard to think of a reasonable use case for this).

Comments

  • Antranig Basman commented 2015-05-21T09:17:59.303-0400

    Merged into trunk at revision c93609021fba9c798489df95e35164fd55f5c64a (Dec 10, 2014)

  • Justin Obara commented 2015-06-26T09:51:15.934-0400

    Reopening to change the fix version to 1.9