01: package com.reeltwo.jumble.util;
02:
03: /**
04: * Interface for objects that can be dynamically cloned under a new
05: * class loader.
06: *
07: * @author Tin Pavlinic
08: * @version $Revision: 495 $
09: */
10: public interface ClassLoaderCloneable {
11:
12: /**
13: * Returns a clone of the object as loaded by the specified class
14: * loader.
15: *
16: * @param loader the new class loader to load in
17: * @return a clone of the object in the new class loader
18: * @throws ClassNotFoundException if <CODE>loader</CODE> could not
19: * load the class or if the class cannot be cloned in the new
20: * loader.
21: */
22: Object clone(ClassLoader loader) throws ClassNotFoundException;
23: }
|