FileDocCategorySizeDatePackage
FallbackObjectCopierImpl.javaAPI DocJava SE 5 API1000Fri Aug 26 14:54:18 BST 2005com.sun.corba.se.impl.copyobject

FallbackObjectCopierImpl

public class FallbackObjectCopierImpl extends Object implements com.sun.corba.se.spi.copyobject.ObjectCopier
Trys a first ObjectCopier. If the first throws a ReflectiveCopyException, falls back and tries a second ObjectCopier.

Fields Summary
private com.sun.corba.se.spi.copyobject.ObjectCopier
first
private com.sun.corba.se.spi.copyobject.ObjectCopier
second
Constructors Summary
public FallbackObjectCopierImpl(com.sun.corba.se.spi.copyobject.ObjectCopier first, com.sun.corba.se.spi.copyobject.ObjectCopier second)

	this.first = first ;
	this.second = second ;
    
Methods Summary
public java.lang.Objectcopy(java.lang.Object src)

	try {
	    return first.copy( src ) ;
	} catch (ReflectiveCopyException rce ) {
	    // XXX log this fallback at a low level
	    return second.copy( src ) ;
	}