TransferableObject.java |
package org.lucci.madhoc.messaging; /* * Created on May 16, 2005 */ /** * @author luc.hogie */ public abstract class TransferableObject implements Cloneable, MemoryConsumingObject { public Object clone() { try { TransferableObject clone = (TransferableObject) getClass().newInstance(); return clone; } catch (InstantiationException e) { e.printStackTrace(); throw new IllegalStateException(); } catch (IllegalAccessException e) { e.printStackTrace(); throw new IllegalStateException(); } } }