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
      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;

      }