Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
All Places
>
Seam
>
Seam 2
>
Discussions
Please enter a title.
You can not post a blank message. Please type your message and try again.
Body
This project is read only now.
0 Replies
Latest reply
on Mar 1, 2010 10:48 PM by ngogia.nitingogia.gmail.com
Scoping Class or Field Level
ngogia.nitingogia.gmail.com
Mar 1, 2010 10:48 PM
Is it better to define Scoping (ScopeType.PAGE) at class level or field level ? Performance wise which one is better ?
Class Level Scoping
@Scope(ScopeType.PAGE)
public class Dummy {
@In
private ObjectA obja;
@In
private ObjectB objb; /* This is the one which i want to define in page scope */
}
At field level
public class Dummy {
@In
private ObjectA obja;
@In(scope=ScopeType.PAGE)
@Out(scope=ScopeType.PAGE)
private ObjectB objb;
}
This content has been marked as final.
Show 0 replies