Java Code Examples for com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory#create()
The following examples show how to use
com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory#create() .
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: CorbaContactInfoListImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 2
Source File: CorbaContactInfoListImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 3
Source File: CorbaContactInfoListImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 4
Source File: CorbaContactInfoListImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 5
Source File: CorbaContactInfoListImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 6
Source File: CorbaContactInfoListImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 7
Source File: CorbaContactInfoListImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 8
Source File: CorbaContactInfoListImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 9
Source File: CorbaContactInfoListImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }
Example 10
Source File: CorbaContactInfoListImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * setLocalSubcontract sets cached information that is set whenever * the effectiveTargetIOR changes. * * Note: this must be maintained accurately whether or not the ORB * allows local optimization, because ServantManagers in the POA * ALWAYS use local optimization ONLY (they do not have a remote case). */ protected void setLocalSubcontract() { if (!effectiveTargetIOR.getProfile().isLocal()) { LocalClientRequestDispatcher = new NotLocalLocalCRDImpl(); return; } // XXX Note that this always uses the first IIOP profile to get the // scid. What about multi-profile IORs? This should perhaps be // tied to the current ContactInfo in some way, together with an // implementation of ClientDelegate that generally prefers co-located // ContactInfo. This may in fact mean that we should do this at // the ContactInfo level, rather than the IOR/profile level. int scid = effectiveTargetIOR.getProfile().getObjectKeyTemplate(). getSubcontractId() ; LocalClientRequestDispatcherFactory lcsf = orb.getRequestDispatcherRegistry().getLocalClientRequestDispatcherFactory( scid ) ; LocalClientRequestDispatcher = lcsf.create( scid, effectiveTargetIOR ) ; }