org.jpu.patterns.common
Class JPUObjectUtils

java.lang.Object
  extended byorg.jpu.patterns.common.JPUObjectUtils

public class JPUObjectUtils
extends java.lang.Object


Method Summary
static java.lang.Object cloneObjectEfficiently(java.lang.Object o)
          Alias for "cloneObjectEfficiently(o, "clone")".
static java.lang.Object cloneObjectEfficiently(java.lang.Object o, java.lang.String methodName)
          First attempts to clone the object using a public clone method with the specified name; if that fails it falls back to SerializationUtils.clone() (which is much slower); if that fails, throws a NestableRuntimeException holding the resulting exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cloneObjectEfficiently

public static java.lang.Object cloneObjectEfficiently(java.lang.Object o)
Alias for "cloneObjectEfficiently(o, "clone")".


cloneObjectEfficiently

public static java.lang.Object cloneObjectEfficiently(java.lang.Object o,
                                                      java.lang.String methodName)
First attempts to clone the object using a public clone method with the specified name; if that fails it falls back to SerializationUtils.clone() (which is much slower); if that fails, throws a NestableRuntimeException holding the resulting exception.



Copyright (c) 2001-2003 - Apache Software Foundation