[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: NEW ISSUE: Guidelines for dealing with cyclic references refers to animpossible situation
TARGET: Java C&I Spec -- sca-javaci-1.1-spec-wd04_proposal2.doc DESCRIPTION: Section 5: Implementation Instance Creation Lines 272-276: Cyclic references between components MUST be handled by the SCA runtime in one of two ways: • If any reference in the cycle is optional, then the container can inject a null value during construction, followed by injection of a reference to the target before invoking any service. • The container can inject a proxy to the target service; invocation of methods on the proxy can result in a ServiceUnavailableException The first of the two ways in the above text talks about the situation where a reference which is a constructor parameter bing optional. This should not arise since from CAA spec, "For a @Reference annotation applied to a constructor parameter, the required attribute MUST have the value true. [JCA90019]". See [1] for a discussion on this topic. PROPOSAL: Outline of the proposal suggested by SimonN in [1] is as follows: 1. Remove lines 275-276. 2. Change the paragraph at line 273 to read, "If any reference in the cycle is not a constructor parameter reference, the container may order the creation of implementation instances and reference injections so that this reference is injected last in the cycle of references." ++Vamsi Apache Tuscany Committer http://tuscany.apache.org Apache Geronimo Committer and Member of PMC http://geronimo.apache.org [1] http://lists.oasis-open.org/archives/sca-j/200902/msg00243.html
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]