KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > copyobject > ObjectCopier


1 /*
2  * @(#)ObjectCopier.java 1.4 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.spi.copyobject ;
9
10 /** Provides an interface for a variety of means to copy an arbitrary
11  * object. Any implementation of this interface must return an exact
12  * copy of obj, preserving all aliasing across all objects reachable
13  * from obj. ReflectiveCopyException must be thrown if the implementation
14  * cannot copy obj for some reason. Note that a trivial implementation
15  * of this interface is possible (always return obj), but this is often
16  * not the desired implementation.
17  */

18 public interface ObjectCopier {
19     Object JavaDoc copy( Object JavaDoc obj ) throws ReflectiveCopyException ;
20 }
21
Popular Tags