📄 clientstubinterceptor.java
字号:
/*====================================================================Tnis file was produced by the OpenCCM ir3_java generator.OpenCCM: The Open CORBA Component Model PlatformCopyright (C) 2000-2002 USTL - LIFL - GOALContact: openccm-team@objectweb.orgThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USAInitial developer(s): Philippe Merle, Mathieu Vadet.Contributor(s): ______________________________________.====================================================================*/ package org.objectweb.ccm.demo3; /** ** Stub interceptor class for the ::demo3::Client interface. **/public class ClientStubInterceptor extends org.omg.CORBA.portable.ObjectImpl implements Client, org.objectweb.openccm.Containers.Interceptor{ // ================================================================== // // Internal State. // // =================================================================== /** ** Reference to the delegate object. **/ private ClientOperations _delegate; /** ** Reference to the call context. **/ private org.objectweb.openccm.Containers.CallContext _context; /** ** **/ private java.lang.String[] ids_ = {}; private org.objectweb.openccm.Containers.CallCoordinator _cc_connect_the_service = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_disconnect_the_service = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_connection_the_service = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_name = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_set_name = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_component_def = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_ccm_home = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_primary_key = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_configuration_complete = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_remove = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_ports = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_provide_facet = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_facets = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_facets = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_same_component = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_connect = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_disconnect = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_connections = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_receptacles = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_receptacles = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_subscribe = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_unsubscribe = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_connect_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_disconnect_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_emitters = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_emitters = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_publishers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_publishers = null; // ================================================================== // // Constructor. // // ================================================================== /** ** The default constructor. **/ public ClientStubInterceptor() { _delegate = null; _context = null; } // ================================================================== // // Internal methods. // // ================================================================= // ================================================================== // // Public methods inherited from the ObjectImpl class. // // ================================================================== /** ** **/ public java.lang.String[] _ids() { return ids_; } // ================================================================== // // Public methods for the Interceptor interface. // // ================================================================== /** ** To set the call context of the interceptor. **/ public void _call_context(org.objectweb.openccm.Containers.CallContext context) { _context = context; } /** ** To get the call context of the interceptor. **/ public org.objectweb.openccm.Containers.CallContext _call_context() { return _context; } /** ** To get the delegate object. **/ public java.lang.Object _delegate() { return _delegate; } /** ** To set the delegate object. **/ public void _delegate(java.lang.Object executor) { _delegate = (ClientOperations)executor; } // ================================================================== // // Public methods for the ClientOperations interface. // // ================================================================== // // IDL:ccm.objectweb.org/demo3/Client/connect_the_service:1.0 // /** ** Implementation of the ::demo3::Client::connect_the_service operation. **/ public void connect_the_service(org.objectweb.ccm.demo3.Services connexion) throws org.omg.Components.AlreadyConnected { if (_cc_connect_the_service==null) _cc_connect_the_service = _call_context().get_call_coordinator("connect_the_service"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("connect_the_service"); _cc_connect_the_service.preinvoke(ctx); try { _delegate.connect_the_service(connexion); } finally { _cc_connect_the_service.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/Client/disconnect_the_service:1.0 // /** ** Implementation of the ::demo3::Client::disconnect_the_service operation. **/ public org.objectweb.ccm.demo3.Services disconnect_the_service() throws org.omg.Components.NoConnection { if (_cc_disconnect_the_service==null) _cc_disconnect_the_service = _call_context().get_call_coordinator("disconnect_the_service"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("disconnect_the_service"); _cc_disconnect_the_service.preinvoke(ctx); try { return _delegate.disconnect_the_service(); } finally { _cc_disconnect_the_service.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/Client/get_connection_the_service:1.0 // /** ** Implementation of the ::demo3::Client::get_connection_the_service operation. **/ public org.objectweb.ccm.demo3.Services get_connection_the_service() { if (_cc_get_connection_the_service==null) _cc_get_connection_the_service = _call_context().get_call_coordinator("get_connection_the_service"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_connection_the_service"); _cc_get_connection_the_service.preinvoke(ctx); try { return _delegate.get_connection_the_service(); } finally { _cc_get_connection_the_service.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/NamedComponent/name:1.0 // /** ** Implementation of the ::demo3::NamedComponent::name attribute as accessor operation. **/ public java.lang.String name() { if (_cc_get_name==null) _cc_get_name = _call_context().get_call_coordinator("name"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("name"); _cc_get_name.preinvoke(ctx); try { return _delegate.name(); } finally { _cc_get_name.postinvoke(ctx); } } /** ** Implementation of the ::demo3::NamedComponent::name attribute as mutator operation. **/ public void name(java.lang.String val) { if (_cc_set_name==null) _cc_set_name = _call_context().get_call_coordinator("name"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("name"); _cc_set_name.preinvoke(ctx); try { _delegate.name(val); } finally { _cc_set_name.postinvoke(ctx); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -