← Prev in month
← Prev in thread
Can a reference used with constructor be optional?
TARGET: sca-javaci-1.1-spec-wd03.doc
Java C&I Spec
Section 5: Implementation Instance Creation
Lines 267-272:
Cyclic references between components may be handled by the container in
one of two ways:
If any reference in the cycle is optional, then the container may
inject a null value during construction, followed by injection of
a reference to the target before invoking any service.
The container may inject a proxy to the target service; invocation of
methods on the proxy may result in a ServiceUnavailableException
I think "the container may inject a null value during construction" (or is
it "any reference in the cycle is optional" that) no longer arises since
from CAA spec, "For a @Reference annotation applied to a constructor
parameter, the required attribute MUST have the value true. [JCA90019]"
++Vamsi
Apache Tuscany Committer http://tuscany.apache.org
Apache Geronimo Committer and Member of PMC http://geronimo.apache.org
← Prev in month
← Prev in thread