2 Replies Latest reply on Mar 24, 2009 9:09 AM by nimo stephan

    static instance Set?

    nimo stephan Master

      I want to have a static Object in my Application Scope managed by Seam:

      Is this right?:

      public static Set<MyObject> instance() { return (Set<MyObject>) Component.getInstance(MyObject.class, ScopeType.APPLICATION);}

      Is this the same as this:

      private static Set<MyObject> myStaticInstance =  new HashSet<MyObject>();
      // getter/setter