From weld-commits at lists.jboss.org Mon Nov 9 20:49:00 2009
Content-Type: multipart/mixed; boundary="===============2467182062098580328=="
MIME-Version: 1.0
From: weld-commits at lists.jboss.org
To: weld-commits at lists.jboss.org
Subject: [weld-commits] Weld SVN: r4923 - doc/trunk/reference/en-US.
Date: Mon, 09 Nov 2009 20:49:00 -0500
Message-ID: <200911100149.nAA1n00c000861@svn01.web.mwc.hst.phx2.redhat.com>
--===============2467182062098580328==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: gavin.king(a)jboss.com
Date: 2009-11-09 20:49:00 -0500 (Mon, 09 Nov 2009)
New Revision: 4923
Modified:
doc/trunk/reference/en-US/scopescontexts.xml
Log:
various revisions
Modified: doc/trunk/reference/en-US/scopescontexts.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- doc/trunk/reference/en-US/scopescontexts.xml 2009-11-10 01:48:46 UTC (r=
ev 4922)
+++ doc/trunk/reference/en-US/scopescontexts.xml 2009-11-10 01:49:00 UTC (r=
ev 4923)
@@ -33,8 +33,7 @@
=
- There's actually no way to remove a bean from a context explicitl=
y. It turns out that's a good thing because
- there is no confusion as to which instance you are getting.
+ There's actually no way to remove a bean from a context until the=
entire context is destroyed.
=
@@ -103,7 +102,7 @@
=
- A CDI extension can support the conversation for other fram=
eworks as well.
+ A CDI extension can support the conversation scope for othe=
r frameworks as well.
=
The request and application scopes are also active:
@@ -151,7 +150,7 @@
holds state associated with a particular web browser tab in=
a JSF application (browsers tend to share
- domain cookies, and hence the session cookie, between tabs,=
which is the root of the issue).
+ domain cookies, and hence the session cookie, between tabs,=
so this is not the case for the session scope).
@@ -221,14 +220,15 @@
This bean is able to control its own lifecycle through use of =
the Conversation API. But
some other beans have a lifecycle which depends completely upo=
n another object.
+ =
=
Conversation propagation
=
- The conversation context automatically propagates with any JSF=
faces request (JSF form submission). It does
- not automatically propagate with non-faces requests, for examp=
le, navigation via a link.
+ The conversation context automatically propagates with any JSF=
faces request (JSF form submission) or redirect. =
+ It does not automatically propagate with non-faces requests, =
for example, navigation via a link.
=
@@ -245,19 +245,20 @@
Add Product]]>
=
- Though it's probably better to use one of the link components =
in JSF 2:
+ It's probably better to use one of the link components in JSF =
2:
=
]]>
-
+ =
+
- The container is also required to propagate conversations acro=
ss any redirect, even if the conversation is
- not marked long-running. This makes it very easy to implement =
the common POST-then-redirect pattern, without
- resort to fragile constructs such as a "flash" object. In this=
case, the container automatically adds a
- request parameter to the redirect URL.
+ The conversation context propagates across redirects, making i=
t very easy to implement the common =
+ POST-then-redirect pattern, without resort to fragile construc=
ts such as a "flash" object. The container =
+ automatically adds the conversation id to the redirect URL as =
a request parameter.
+
=
=
@@ -266,8 +267,8 @@
=
The container is permitted to destroy a conversation and all s=
tate held in its context at any time in order
- to preserve resources. A CDI implementation will normally do t=
his on the basis of some kind of timeout
- — though this is not required by the CDI specification. =
The timeout is the period of inactivity before
+ to conserve resources. A CDI implementation will normally do t=
his on the basis of some kind of =
+ timeout—though this is not required by the specification=
. The timeout is the period of inactivity before
the conversation is destroyed (as opposed to the amount of tim=
e the conversation is active).
=
@@ -286,8 +287,8 @@
The dependent pseudo-scope
=
- In addition to the four built-in scopes, CDI features the so-call=
ed dependent
- pseudo-scope. This is the default scope for a bean whi=
ch does not explicitly declare a scope type.
+ In addition to the four built-in scopes, CDI features the so-call=
ed dependent pseudo-scope. =
+ This is the default scope for a bean which does not explicitly de=
clare a scope type.
=
@@ -297,15 +298,10 @@
=
- When an injection point of a bean resolves to a dependent bean, a=
new instance of the dependent bean is created
- when the bean into which it's being injected is instantiated. Ins=
tances of dependent beans are never shared
- between different beans or different injection points. They are s=
trictly dependent objects
- of some other bean instance.
+ An instances of a dependent bean is never shared between differen=
t clients or different injection points. It is =
+ strictly a dependent object of some other ob=
ject. It is instantiated when the object it =
+ belongs to is created, and destroyed when the object it belongs t=
o is destroyed.
- =
-
- Dependent bean instances are destroyed when the instance they dep=
end upon is destroyed.
-
=
CDI makes it easy to obtain a dependent instance of a bean, even =
if the bean is already declared as a bean with
@@ -313,7 +309,7 @@
=
- The @New annotation
+ The @New qualifier
=
The built-in @New qualifier annotation allo=
ws implicit definition of
--===============2467182062098580328==--