title: How does scope type affect the way an EntityQuery object is re-used
body: <pre><code>for (...) {
      UserList userList = (UserList) Component.getInstance(UserList.class, ScopeType.METHOD);
      userList.getUserByEmailAddress(emailId);
  }
  </code></pre>
  
  <p>There are different ScopeTypes which are supported by Seam (e.g. METHOD, PAGE, EVENT, APPLICATION). We currently use the METHOD scope to retrieve User object by email id. The above code is present in a for loop (i.e. for a collection of user email addresses we retrieve the user object). Is this the right ScopeType or would it be preferable to move the UserList declaration above the for loop</p>
  
  <p>We have observed in certain scope types that the userList object gets reused, can someone clarify on how it really works. Are there any tools within seam which will help you understand how these objects get reused (We turned on some trace logging, but there were too many calls which were being made and it was not quite clear)</p>