1 package org.jacorb.orb.portableInterceptor; 2 3 23 24 import org.omg.PortableInterceptor.*; 25 import org.omg.CORBA.UserException ; 26 import org.jacorb.orb.standardInterceptors.CodeSetInfoInterceptor; 27 28 36 37 public class IORInterceptorIterator 38 extends AbstractInterceptorIterator 39 { 40 private IORInfoImpl info = null; 41 private int[] profile_tags = null; 42 43 public IORInterceptorIterator(Interceptor[] interceptors) 44 { 45 super(interceptors); 46 } 47 48 public IORInterceptorIterator(Interceptor[] interceptors, 49 int[] ptags ) 50 { 51 super(interceptors); 52 profile_tags = ptags; 53 } 54 55 public void iterate(IORInfoImpl info) 56 throws UserException { 57 58 this.info = info; 59 60 iterate(); 61 } 62 63 protected void invoke(Interceptor interceptor) 64 throws UserException 65 { 66 try 67 { 68 if (interceptor instanceof CodeSetInfoInterceptor) 69 ((CodeSetInfoInterceptor) interceptor). 70 establish_components(info, profile_tags); 71 else 72 ((IORInterceptor) interceptor).establish_components(info); 73 } 74 catch(Exception e) 75 { 76 } 77 } 78 } | Popular Tags |