Each type of Seam component supports only specific scopes.
This inspection reports @Scope, @Role and @DataModel annotations that specify an unsupported scope for the specific component.
These are the supported scopes for each component type (default scope in bold):
|
Stateless Session Bean |
Stateful Session Bean |
Entity Bean |
Java Bean |
| STATELESS |
X |
|
|
x |
| EVENT |
|
x |
x |
x |
| PAGE |
|
|
x |
x |
| CONVERSATION |
|
X |
X |
X |
| SESSION |
|
x |
x |
x |
| BUSINESS_PROCESS |
|
x |
x |
x |
| APPLICATION |
|
x |
x |
x |
@DataModel context variables have another restriction on their scope:
If no scope is specified the scope is the same as for the enclosing component (EVENT if that that component is in STATELESS scope).
Alternatively it's allowed to specify PAGE scope for data model context variables.