1 7 8 package com.sun.corba.se.impl.copyobject ; 9 10 import com.sun.corba.se.spi.copyobject.ObjectCopier ; 11 import com.sun.corba.se.spi.copyobject.ReflectiveCopyException ; 12 13 16 public class FallbackObjectCopierImpl implements ObjectCopier 17 { 18 private ObjectCopier first ; 19 private ObjectCopier second ; 20 21 public FallbackObjectCopierImpl( ObjectCopier first, 22 ObjectCopier second ) 23 { 24 this.first = first ; 25 this.second = second ; 26 } 27 28 public Object copy( Object src ) throws ReflectiveCopyException 29 { 30 try { 31 return first.copy( src ) ; 32 } catch (ReflectiveCopyException rce ) { 33 return second.copy( src ) ; 35 } 36 } 37 } 38 | Popular Tags |