I was going thru the code for the MutableOrdersTO.
This is the TO pattern and I was wondering why MutableOrdersTO is static?
Other than the fact that it can be instantiated using
new OrdersTO.MutableOrdersTO();
public interface OrdersTO extends Serializable {
o
o public Iterator iterator();
o public int size();
o public boolean contains(Object o);
o public boolean containsAll(Collection c);
o public boolean equals(Object o);
o public int hashCode();
o public boolean isEmpty();
o public Object[] toArray();
o public Object[] toArray(Object[] a);
o
o static class MutableOrdersTO extends ArrayList
implements OrdersTO {
o }
o }
Will this result into the same OrdersTO for all the clients hat request it?
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)