Author: shane.bryzak(a)jboss.com
Date: 2009-02-18 18:38:41 -0500 (Wed, 18 Feb 2009)
New Revision: 1582
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
more explicit about what classes are simple beans
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-18 22:57:51 UTC (rev 1581)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-18 23:38:41 UTC (rev 1582)
@@ -206,6 +206,88 @@
</section>
+ <section id="2.4.1" title="Built-in scope types">
+ <assertion id="a">
+ <text>The @RequestScoped, @ApplicationScoped and @SessionScoped annotations
defined in Section 8.5, "Context management for built-in scopes" represent the
standard scopes defined by the Java Servlets specification</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>The @ConversationScoped annotation represents the conversation scope
+defined in Section 8.5.4, "Conversation context lifecycle".</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The @Dependent pseudo-scope is for dependent objects, as defined in
Section 8.3, "Dependent pseudo-scope"</text>
+ </assertion>
+ </section>
+
+ <section id="2.4.2" title="Defining new scope types">
+ <assertion id="a">
+ <text>A scope type is a Java annotation defined as @Target({TYPE, METHOD,
FIELD}) and @Retention(RUNTIME)</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>All scope types must specify the @javax.context.ScopeType
meta-annotation</text>
+ </assertion>
+
+ </section>
+
+ <section id="2.4.3" title="Declaring the bean scope using
annotations">
+ <assertion id="a">
+ <text>The bean's scope is defined by annotating the bean class or
producer method or field with a scope type</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>A bean class or producer method or field may specify at most one scope
type annotation. If a bean class or producer method or field specifies multiple scope type
annotations, a DefinitionException is thrown by the container at deployment
time</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>A scope type may be specified using a stereotype annotation, as defined
in Section 2.7.2, "Declaring the stereotypes for a bean using
annotations"</text>
+ </assertion>
+ </section>
+
+ <section id="2.4.4" title="Declaring the bean scope using
XML">
+ <assertion id="a">
+ <text>If the bean is declared in beans.xml, the scope may be specified using
the scope annotation type name</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>If more than one scope type is specified in XML, a DefinitionException
is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>A scope type may be specified using a stereotype declared in XML, as
defined in Section 2.7.3, "Declaring the stereotypes for a bean using
XML"</text>
+ </assertion>
+ </section>
+
+ <section id="2.4.5" title="Default scope">
+ <assertion id="a">
+ <text>When no scope is explicitly declared by annotating the bean class or
producer method or field, or by using XML, the scope of a bean is defaulted</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>If the bean does not declare any stereotype with a declared default
scope, the default scope for the bean is @Dependent</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>If all stereotypes declared by the bean that have some declared default
scope have the same default scope, then that scope is the default scope for the
bean</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If there are two different stereotypes declared by the bean that
declare different default scopes, then there is no default scope and the bean must
explicitly declare a scope. If it does not explicitly declare a scope, a
DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>If a bean explicitly declares a scope, any default scopes declared by
stereotypes are ignored</text>
+ </assertion>
+ </section>
+
+ <section id="2.5" title="Deployment types">
+ <assertion id="a">
+ <text>The set of deployment types is extensible</text>
+ </assertion>
+ </section>
+
<section id="2.5.1" title="Built-in deployment types">
<assertion id="a">
@@ -599,9 +681,12 @@
<assertion id="b">
<text>A top-level Java class is not a simple bean if it is a non-static inner
class</text>
</assertion>
- <assertion id="c">
- <text>A top-level Java class is only a simple bean if it is a concrete
class.</text>
+ <assertion id="ca">
+ <text>A top-level Java class is not a simple bean if it is an abstract
class</text>
</assertion>
+ <assertion id="cb">
+ <text>A top-level Java class is not a simple bean if it is an
interface</text>
+ </assertion>
<assertion id="d">
<text>A top-level Java class is only a simple bean if it is annotated
@Decorator.</text>
</assertion>
Show replies by date