Lines Matching defs:stub

51 /** Provide access to stub delegate and type id information
52 * independent of the stub type. This class exists because
72 public static boolean isStub( Object stub )
74 return (stub instanceof DynamicStub) ||
75 (stub instanceof ObjectImpl) ;
78 public static void setDelegate( Object stub, Delegate delegate )
80 if (stub instanceof DynamicStub)
81 ((DynamicStub)stub).setDelegate( delegate ) ;
82 else if (stub instanceof ObjectImpl)
83 ((ObjectImpl)stub)._set_delegate( delegate ) ;
139 public static Delegate getDelegate( Object stub )
141 if (stub instanceof DynamicStub)
142 return ((DynamicStub)stub).getDelegate() ;
143 else if (stub instanceof ObjectImpl)
144 return ((ObjectImpl)stub)._get_delegate() ;
145 else if (stub instanceof Tie) {
146 Tie tie = (Tie)stub ;
153 public static ORB getORB( Object stub )
155 if (stub instanceof DynamicStub)
156 return ((DynamicStub)stub).getORB() ;
157 else if (stub instanceof ObjectImpl)
158 return (ORB)((ObjectImpl)stub)._orb() ;
163 public static String[] getTypeIds( Object stub )
165 if (stub instanceof DynamicStub)
166 return ((DynamicStub)stub).getTypeIds() ;
167 else if (stub instanceof ObjectImpl)
168 return ((ObjectImpl)stub)._ids() ;
173 public static void connect( Object stub,
176 if (stub instanceof DynamicStub)
177 ((DynamicStub)stub).connect(
179 else if (stub instanceof javax.rmi.CORBA.Stub)
180 ((javax.rmi.CORBA.Stub)stub).connect( orb ) ;
181 else if (stub instanceof ObjectImpl)
182 orb.connect( (org.omg.CORBA.Object)stub ) ;
187 public static boolean isLocal( Object stub )
189 if (stub instanceof DynamicStub)
190 return ((DynamicStub)stub).isLocal() ;
191 else if (stub instanceof ObjectImpl)
192 return ((ObjectImpl)stub)._is_local() ;
197 public static OutputStream request( Object stub,
200 if (stub instanceof DynamicStub)
201 return ((DynamicStub)stub).request( operation,
203 else if (stub instanceof ObjectImpl)
204 return ((ObjectImpl)stub)._request( operation,