org.omg.CORBA.portable.Delegate Java Examples
The following examples show how to use
org.omg.CORBA.portable.Delegate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StubInvocationHandlerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #2
Source File: StubInvocationHandlerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #3
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #4
Source File: StubIORImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Delegate getDelegate( ORB orb ) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream() ; // read the IOR back from the stream org.omg.CORBA.Object obj = (org.omg.CORBA.Object)istr.read_Object(); return StubAdapter.getDelegate( obj ) ; }
Example #5
Source File: CorbaClientDelegateImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #6
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #7
Source File: StubIORImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Delegate getDelegate( ORB orb ) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream() ; // read the IOR back from the stream org.omg.CORBA.Object obj = (org.omg.CORBA.Object)istr.read_Object(); return StubAdapter.getDelegate( obj ) ; }
Example #8
Source File: CorbaClientDelegateImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #9
Source File: StubInvocationHandlerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #10
Source File: StubInvocationHandlerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #11
Source File: StubIORImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public Delegate getDelegate( ORB orb ) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream() ; // read the IOR back from the stream org.omg.CORBA.Object obj = (org.omg.CORBA.Object)istr.read_Object(); return StubAdapter.getDelegate( obj ) ; }
Example #12
Source File: CorbaClientDelegateImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #13
Source File: StubInvocationHandlerImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #14
Source File: StubInvocationHandlerImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private boolean isLocal() { boolean result = false ; Delegate delegate = StubAdapter.getDelegate( stub ) ; if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate)delegate ; ContactInfoList cil = cdel.getContactInfoList() ; if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList)cil ; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher() ; result = lcrd.useLocalInvocation( null ) ; } } return result ; }
Example #15
Source File: StubIORImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Delegate getDelegate( ORB orb ) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream() ; // read the IOR back from the stream org.omg.CORBA.Object obj = (org.omg.CORBA.Object)istr.read_Object(); return StubAdapter.getDelegate( obj ) ; }
Example #16
Source File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #17
Source File: CorbaClientDelegateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * This method overrides the org.omg.CORBA.portable.Delegate.equals method, * and does the equality check based on IOR equality. */ public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { if (other == null) return false ; if (!StubAdapter.isStub(other)) { return false; } Delegate delegate = StubAdapter.getDelegate( other ) ; if (delegate == null) return false ; if (delegate instanceof CorbaClientDelegateImpl) { CorbaClientDelegateImpl otherDel = (CorbaClientDelegateImpl) delegate ; IOR otherIor = otherDel.contactInfoList.getTargetIOR(); return this.contactInfoList.getTargetIOR().equals(otherIor); } // Come here if other is not implemented by our ORB. return false; }
Example #18
Source File: StubAdapter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }
Example #19
Source File: CorbaClientDelegateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #20
Source File: StubAdapter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** This also gets the delegate from a Servant by * using Servant._this_object() */ public static Delegate getDelegate( Object stub ) { if (stub instanceof DynamicStub) return ((DynamicStub)stub).getDelegate() ; else if (stub instanceof ObjectImpl) return ((ObjectImpl)stub)._get_delegate() ; else if (stub instanceof Tie) { Tie tie = (Tie)stub ; org.omg.CORBA.Object ref = activateTie( tie ) ; return getDelegate( ref ) ; } else throw wrapper.getDelegateRequiresStub() ; }
Example #21
Source File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #22
Source File: StubAdapter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** This also gets the delegate from a Servant by * using Servant._this_object() */ public static Delegate getDelegate( Object stub ) { if (stub instanceof DynamicStub) return ((DynamicStub)stub).getDelegate() ; else if (stub instanceof ObjectImpl) return ((ObjectImpl)stub)._get_delegate() ; else if (stub instanceof Tie) { Tie tie = (Tie)stub ; org.omg.CORBA.Object ref = activateTie( tie ) ; return getDelegate( ref ) ; } else throw wrapper.getDelegateRequiresStub() ; }
Example #23
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #24
Source File: StubAdapter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }
Example #25
Source File: StubAdapter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }
Example #26
Source File: CorbaClientDelegateImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #27
Source File: StubAdapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }
Example #28
Source File: CorbaClientDelegateImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #29
Source File: CorbaClientDelegateImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public boolean is_equivalent(org.omg.CORBA.Object obj, org.omg.CORBA.Object ref) { if ( ref == null ) return false; // If ref is a local object, it is not a Stub! if (!StubAdapter.isStub(ref)) return false ; Delegate del = StubAdapter.getDelegate(ref) ; if (del == null) return false ; // Optimize the x.is_equivalent( x ) case if (del == this) return true; // If delegate was created by a different ORB, return false if (!(del instanceof CorbaClientDelegateImpl)) return false ; CorbaClientDelegateImpl corbaDelegate = (CorbaClientDelegateImpl)del ; CorbaContactInfoList ccil = (CorbaContactInfoList)corbaDelegate.getContactInfoList() ; return this.contactInfoList.getTargetIOR().isEquivalent( ccil.getTargetIOR() ); }
Example #30
Source File: StubAdapter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void setDelegate( Object stub, Delegate delegate ) { if (stub instanceof DynamicStub) ((DynamicStub)stub).setDelegate( delegate ) ; else if (stub instanceof ObjectImpl) ((ObjectImpl)stub)._set_delegate( delegate ) ; else throw wrapper.setDelegateRequiresStub() ; }