10 Replies Latest reply on Apr 16, 2004 10:14 PM by spiritualmechanic

    Intercepting Constructors


      I'd like to intercept a constructor such that I don't return the actual object, but an instance of the same object type from a pool.

      It looks like

      Object o = invocation.invokeNext() will get me the object, so maybe what I want to do is do:

      Object o = Pool.getInstance();

      Is that sane?