private void throwNoContextIfNull(Object o) throws NoContext { if (o == null) { throw new NoContext(); } }
final public byte[] object_id(org.omg.PortableServer.Servant self) { check(); _getPOACurrent(); try { return _current.get_object_id(); } catch(NoContext e) { throw new org.omg.CORBA.OBJ_ADAPTER(e.toString()); } }
final public POA poa(org.omg.PortableServer.Servant self) { check(); _getPOACurrent(); try { // CORBA 2.4 added the get_servant() operation to the // PortableServer::Current interface. As of JDK 1.4.2, // however, the class org.omg.PortableServant.Current // in Sun's JDK does not have the method get_servant(). // Instead of simply saying _current.get_servant(), below // we say ((org.jacorb.poa.Current)_current).get_servant(). // The cast allows JacORB to run with the obsolete Sun class. if( ((org.jacorb.poa.Current)_current).get_servant() != self ) { throw new org.omg.CORBA.OBJ_ADAPTER(); } return _current.get_POA(); } catch(NoContext e) { throw new org.omg.CORBA.OBJ_ADAPTER(e.toString()); } }
private void throwNoContextIfNull(Object o) throws NoContext { if ( o == null ) { throw new NoContext(); } }
private void throwNoContextIfNull(Object o) throws NoContext { if (o == null) { throw new NoContext(); } }
public org.omg.PortableServer.Servant get_servant() throws org.omg.PortableServer.CurrentPackage.NoContext { CurrentState state = (CurrentState) stateKey_.get(Thread .currentThread()); if (state == null || state.poa == null) throw new org.omg.PortableServer.CurrentPackage.NoContext(); return state.servant; }
public org.omg.PortableServer.POA get_POA() throws org.omg.PortableServer.CurrentPackage.NoContext { CurrentState state = (CurrentState) stateKey_.get(Thread .currentThread()); if (state == null || state.poa == null) throw new org.omg.PortableServer.CurrentPackage.NoContext(); return state.poa; }
public byte[] get_object_id() throws org.omg.PortableServer.CurrentPackage.NoContext { CurrentState state = (CurrentState) stateKey_.get(Thread .currentThread()); if (state == null || state.poa == null) throw new org.omg.PortableServer.CurrentPackage.NoContext(); return state.oid; }
private synchronized InvocationContext getInvocationContext() throws NoContext { Thread thread = Thread.currentThread(); LinkedList list = (LinkedList) threadTable.get(thread); if (list != null) { InvocationContext context = (InvocationContext) list.getLast(); if (context != null) { return context; } } throw new NoContext(); }
private OAInvocationInfo peekThrowNoContext() throws NoContext { OAInvocationInfo invocationInfo = null; try { invocationInfo = orb.peekInvocationInfo() ; } catch (EmptyStackException e) { throw new NoContext(); } return invocationInfo; }
public static org.omg.PortableServer.CurrentPackage.NoContext read (org.omg.CORBA.portable.InputStream istream) { org.omg.PortableServer.CurrentPackage.NoContext value = new org.omg.PortableServer.CurrentPackage.NoContext (); // read and discard the repository ID istream.read_string (); return value; }
private OAInvocationInfo peekThrowNoContext() throws NoContext { OAInvocationInfo invocationInfo = null; try { invocationInfo = orb.peekInvocationInfo(); } catch (EmptyStackException e) { throw new NoContext(); } return invocationInfo; }
private OAInvocationInfo peekThrowNoContext() throws NoContext { OAInvocationInfo invocationInfo = null; try { invocationInfo = orb.peekInvocationInfo(); } catch (EmptyStackException e) { throw new NoContext(); } return invocationInfo; }
public static NoContext read(org.omg.CORBA.portable.InputStream in) { if(!id().equals(in.read_string())) throw new org.omg.CORBA.MARSHAL(); NoContext _ob_v = new NoContext(); return _ob_v; }
public static org.omg.PortableServer.CurrentPackage.NoContext read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.PortableServer.CurrentPackage.NoContext result = new org.omg.PortableServer.CurrentPackage.NoContext(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.CurrentPackage.NoContext s)
public static org.omg.PortableServer.CurrentPackage.NoContext read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.PortableServer.CurrentPackage.NoContext result = new org.omg.PortableServer.CurrentPackage.NoContext(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.CurrentPackage.NoContext s)
public org.omg.CORBA.Object get_reference() throws org.omg.PortableServer.CurrentPackage.NoContext { CurrentState state = (CurrentState) stateKey_.get(Thread .currentThread()); if (state == null || state.poa == null) throw new org.omg.PortableServer.CurrentPackage.NoContext(); try { return state.poa.servant_to_reference(state.servant); } catch (org.omg.PortableServer.POAPackage.WrongPolicy ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } catch (org.omg.PortableServer.POAPackage.ServantNotActive ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } return null; }